[FFmpeg-devel] [PATCH v1 2/2] avformat/rawdec: set framerate in codec parameters

2025-01-26 Thread Gavin Li
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

[FFmpeg-devel] [PATCH v1 1/2] avformat/demux: use per-packet repeat_pict to calculate frame duration

2025-01-26 Thread Gavin Li
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