Skip to content

avdemux: fix negative pts if start_time is bigger than the ts

Guillaume Desmottes requested to merge gdesmott/gst-libav:demux-ts into master

The start time is supposed to be the ts of the first frame. FFmpeg uses fractions to represent timestamps and the start time may use a different base than the frame pts. So we may end up having the start time bigger than the pts because of rounding when converting to gst ts.

See #51 (closed) for details.

Merge request reports

Loading