[FFmpeg-cvslog] lavf/rawdec: stop setting codec context framerate

Anton Khirnov git at videolan.org
Fri May 5 15:52:16 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue May  2 10:51:08 2023 +0200| [2850584876e52beaddf7a9f30e9914dad7115618] | committer: Anton Khirnov

lavf/rawdec: stop setting codec context framerate

Demuxers are not supposed to do this.

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

 libavformat/rawdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 9126a9e53b..6b623d366e 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -87,7 +87,6 @@ int ff_raw_video_read_header(AVFormatContext *s)
     sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
 
     st->avg_frame_rate = s1->framerate;
-    sti->avctx->framerate = s1->framerate;
     avpriv_set_pts_info(st, 64, 1, 1200000);
 
 fail:



More information about the ffmpeg-cvslog mailing list