[FFmpeg-devel] [RFC/PATCH] matroska timestamps not always pts
Sun Nov 18 23:11:14 CET 2007
Apperently the timestamps stored in matroska container can mean different
things. For native tracks they normally mean pts, while for others this
isn't always the case.
The case i'm trying to nail here is the ms compatibility case. In this case,
timestamps should correspond to the frame numbers in avi. This patch makes
demuxer only set the correct timestamp (dts/pts) in the packet.
Sadly ffmpeg still fills in the pts of the packet with the same value as dts
somewhere later in utils.c i'd expect. Atleast this is the case for the
mpeg4 video's i've tested. I think this could be due to mpeg4 parser not
setting has_b_frames, but i'm not entirely sure.
Oh, and the patch probably doesn't apply cleanly, had to manually remove
some hunks that was unrelated. Just want to know if something along the
lines of this would be accepted
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2041 bytes
Desc: not available
More information about the ffmpeg-devel