Keyframes are signaled at the container level on Matroska/Webm files, so bitstream parsing for that purpose is unnecessary.
Should speed up demuxing a bit. Signed-off-by: James Almer <jamr...@gmail.com> --- libavformat/matroskadec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 81e9bb9bff..491c4ddf35 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2507,7 +2507,8 @@ static int matroska_parse_tracks(AVFormatContext *s) st->codecpar->width * track->video.display_height * display_height_mul, 255); } - if (st->codecpar->codec_id != AV_CODEC_ID_HEVC) + if (st->codecpar->codec_id != AV_CODEC_ID_HEVC && + st->codecpar->codec_id != AV_CODEC_ID_AV1) st->need_parsing = AVSTREAM_PARSE_HEADERS; if (track->default_duration) { -- 2.21.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".