demux_lavf: for avi, use packet .dts instead of .pts
commit759231566a02db7f6de6a1cfcf59820d70ec2ad2
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 6 Nov 2010 21:17:16 +0000 (6 23:17 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 6 Nov 2010 21:29:45 +0000 (6 23:29 +0200)
treeeab26aba2292a8aa098df794a5729bf3f3629740
parentd707da9e6528ee4cfe78b91791c61dd9ef0968b2
demux_lavf: for avi, use packet .dts instead of .pts

When playing avi files take timestamps from the .dts field of the
packet instead of .pts. For avi libavformat returns the original avi
timestamps in .dts; without GENPTS set .pts is sometimes unset, with
GENPTS set it'll contain some made up values which are not correct
pts. Current libavformat also has a bug take makes it loop over the
whole avi file if you use GENPTS with video streams disabled.

The timing code can cope with the avi timestamps even though they're
not really pts.
libmpdemux/demux_lavf.c