gxf: Fix 25 fps DV material in GXF being misdetected as 50 fps
authorTomas Härdin <tomas.hardin@codemill.se>
Thu, 23 Jun 2011 13:59:33 +0000 (15:59 +0200)
committerReinhard Tartler <siretart@tauware.de>
Mon, 26 Sep 2011 17:26:28 +0000 (19:26 +0200)
commitc75ba07f6eb83439bc44e5504152f8ca03097bec
tree4ffa596e1e92e3e3720856618ca9c17e47a6f6c6
parent94177614747ebb8a8e1b7e70cfd5229cbac56c04
gxf: Fix 25 fps DV material in GXF being misdetected as 50 fps

Set DV packet durations using fields_per_frame.
This requires turning gxf_stream_info into the demuxer's context for access to the value in gxf_packet().
Since MPEG-2 seems to work fine this done only for DV.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 99fecc64b064a013559d3d61f7d9790e3c95c80e)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/gxf.c