[FFmpeg-devel] [PATCH] avformat/matroskadec: disable parsing for AV1 streams
James Almer
jamrial at gmail.com
Tue Mar 26 05:41:05 EET 2019
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 <jamrial at 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
More information about the ffmpeg-devel
mailing list