[FFmpeg-devel] [PATCH 4/4] lavf/av1dec: stop setting codec context framerate
Anton Khirnov
anton at khirnov.net
Tue May 2 12:37:55 EEST 2023
Demuxers are not supposed to do this.
---
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);
--
2.39.2
More information about the ffmpeg-devel
mailing list