duration.
The h264-bsf-dts2pts test now returns the correct frame durations for a
bitstream with a mix of single-field and double-field frames.
Signed-off-by: Gavin Li
---
libavformat/rawdec.c | 2 +-
tests/fate/demux.mak | 2 +-
tests/ref/fate/cavs
of 128,
avg_frame_rate is correctly detected as 29.97 fps.
To fix this, store the repeat_pict value in AVPacket instead of
AVCodecParserContext (where it would get overridden when processing
subsequent packets), and use it to calculate the frame duration.
Signed-off-by: Gavin Li
---
libavcodec/pa