[FFmpeg-devel] avformat/matroskadec: request frame header parsing for HEVC

Submitted by James Almer on May 20, 2019, 8:57 p.m.

Details

Message ID 20190520205736.56170-1-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer May 20, 2019, 8:57 p.m.
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@gmail.com>
---
 libavformat/matroskadec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

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,