[FFmpeg-devel] [PATCH 3/7] lavf/rawdec: mark raw demuxers as having no timestamps

Anton Khirnov anton at khirnov.net
Sun Apr 9 16:27:42 EEST 2023


Changes the result of the h264_redundant_pps-mov test, where the output
timebase is now 1001/24000 instead of 1/24. This is more correct, as the
source file actually is 23.98fps.
---
 libavformat/rawdec.h                  | 2 +-
 tests/ref/fate/h264_redundant_pps-mov | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h
index f843fe5a2e0..91d0b659afd 100644
--- a/libavformat/rawdec.h
+++ b/libavformat/rawdec.h
@@ -57,7 +57,7 @@ const AVInputFormat ff_ ## shortname ## _demuxer = {\
     .read_header    = ff_raw_video_read_header,\
     .read_packet    = ff_raw_read_partial_packet,\
     .extensions     = ext,\
-    .flags          = flag,\
+    .flags          = flag | AVFMT_NOTIMESTAMPS,\
     .raw_codec_id   = id,\
     .priv_data_size = sizeof(FFRawVideoDemuxerContext),\
     .priv_class     = &ff_rawvideo_demuxer_class,\
diff --git a/tests/ref/fate/h264_redundant_pps-mov b/tests/ref/fate/h264_redundant_pps-mov
index 7cab0e0b29b..a8a1fae933b 100644
--- a/tests/ref/fate/h264_redundant_pps-mov
+++ b/tests/ref/fate/h264_redundant_pps-mov
@@ -1,6 +1,6 @@
 ac2e8f528dae4e4d610fa3517d2c94fb *tests/data/fate/h264_redundant_pps-mov.h264
 187284 tests/data/fate/h264_redundant_pps-mov.h264
-#tb 0: 1/24
+#tb 0: 1001/24000
 #media_type 0: video
 #codec_id 0: rawvideo
 #dimensions 0: 640x360
-- 
2.39.1



More information about the ffmpeg-devel mailing list