diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-02 10:51:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-05 14:49:40 +0200 |
commit | 60ecf44b037c7961ac4e69f83ff315c11c5df922 (patch) | |
tree | 008f8fae88f4b0a1dbaa6192ff9dd7c3f83c9659 | |
parent | e43be84c0f3ff6d0dda6976120b33234cc5db962 (diff) | |
download | ffmpeg-60ecf44b037c7961ac4e69f83ff315c11c5df922.tar.gz |
lavf/av1dec: stop setting codec context framerate
Demuxers are not supposed to do this.
-rw-r--r-- | libavformat/av1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |