1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

lavf/av1dec: stop setting codec context framerate

Demuxers are not supposed to do this.
This commit is contained in:
Anton Khirnov
2023-05-02 10:51:08 +02:00
parent e43be84c0f
commit 60ecf44b03

View File

@@ -80,7 +80,7 @@ static int av1_read_header(AVFormatContext *s)
st->codecpar->codec_id = AV_CODEC_ID_AV1; st->codecpar->codec_id = AV_CODEC_ID_AV1;
sti->need_parsing = AVSTREAM_PARSE_HEADERS; sti->need_parsing = AVSTREAM_PARSE_HEADERS;
sti->avctx->framerate = c->framerate; st->avg_frame_rate = c->framerate;
// taken from rawvideo demuxers // taken from rawvideo demuxers
avpriv_set_pts_info(st, 64, 1, 1200000); avpriv_set_pts_info(st, 64, 1, 1200000);