[demux/avi] Enable dirac support (Set PTS on first output block)df-avi
commit30d2459dc5f746b331f99487bb186256dc0552c7
authorDavid Flynn <davidf@woaf.net>
Sat, 23 Aug 2008 21:12:38 +0000 (23 22:12 +0100)
committerDavid Flynn <davidf@rd.bbc.co.uk>
Wed, 22 Oct 2008 13:37:30 +0000 (22 13:37 +0000)
tree00b57fe89e0fc32e6ceb36331af7e9c005de16b5
parent1b1a6a4ef36bfb431359a6a4a1d8a7ce1c907b6f
[demux/avi] Enable dirac support (Set PTS on first output block)

It is possible for a decoder to interpolate all the PTS values at its
output (They are in order and it knows the frame rate).  However, an
initial offset is required.  Demuxers which only provide DTS (such as
AVI) do not provide the initial offset.

Enable setting PTS=DTS on the first block output from the demux.

NB, this isn't actually correct, it assumes the first PTS=DTS, which
is often not the case.  For most MPEG2 style gops this should be ok,
however a sequence that starts with a reordered picture will cause
problems.  It isn't trivial to determine the initial offset between
PTS and DTS.

UNTESTED WITH OTHER CODECS
modules/demux/avi/avi.c