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

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


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

lavf/av1dec: stop setting codec context framerate

Demuxers are not supposed to do this.

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

 libavformat/av1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index ba7fee60cd..216d4e2298 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -80,7 +80,7 @@ static int av1_read_header(AVFormatContext *s)
     st->codecpar->codec_id = AV_CODEC_ID_AV1;
     sti->need_parsing = AVSTREAM_PARSE_HEADERS;
 
-    sti->avctx->framerate = c->framerate;
+    st->avg_frame_rate = c->framerate;
     // taken from rawvideo demuxers
     avpriv_set_pts_info(st, 64, 1, 1200000);
 



More information about the ffmpeg-cvslog mailing list