[FFmpeg-cvslog] lavf/rawdec: mark raw demuxers as having no timestamps

Anton Khirnov git at videolan.org
Thu Apr 13 16:42:50 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Apr  5 16:43:03 2023 +0200| [be3b1e27e5cb7a390ab1bfa2265d0b0e2f0bcbce] | committer: Anton Khirnov

lavf/rawdec: mark raw demuxers as having no timestamps

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be3b1e27e5cb7a390ab1bfa2265d0b0e2f0bcbce
---

 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 f843fe5a2e..91d0b659af 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 7cab0e0b29..a8a1fae933 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



More information about the ffmpeg-cvslog mailing list