[FFmpeg-devel] [PATCH] avformat/matroskadec: request frame header parsing for HEVC
James Almer
jamrial at gmail.com
Mon May 20 23:57:36 EEST 2019
HEVC parsing was forcefully disabled six years ago in commit 16b6839de6, when
the hevc parser had no frame header parsing capabilites whatsoever, and enabling
it would have been a no-op overhead in the demuxing process.
This hasn't been the case for a very long while, so revert it.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/matroskadec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index cba2b3d1f8..e282c01fc1 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2525,8 +2525,7 @@ 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)
- st->need_parsing = AVSTREAM_PARSE_HEADERS;
+ st->need_parsing = AVSTREAM_PARSE_HEADERS;
if (track->default_duration) {
av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
--
2.21.0
More information about the ffmpeg-devel
mailing list