diff options
author | Yusuke Nakamura <muken.the.vfrmaniac@gmail.com> | 2013-10-03 14:34:53 +0900 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:20:49 +0100 |
commit | 959bea13ce3498a5bddf8a415a061a7bb5a8b075 (patch) | |
tree | 9b6b109b9dda6fb9766c980f75ece3e95f11763b /libavformat/matroskadec.c | |
parent | ea29f965dc71182f77b8efe819630f55e48b0ab7 (diff) | |
download | ffmpeg-959bea13ce3498a5bddf8a415a061a7bb5a8b075.tar.gz |
matroskadec: Support HEVC demuxing
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index e6c9adf547..f798342443 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1693,8 +1693,9 @@ static int matroska_read_header(AVFormatContext *s) st->codec->height * track->video.display_width, st->codec-> width * track->video.display_height, 255); - if (st->codec->codec_id != AV_CODEC_ID_H264) - st->need_parsing = AVSTREAM_PARSE_HEADERS; + if (st->codec->codec_id != AV_CODEC_ID_H264 && + st->codec->codec_id != AV_CODEC_ID_HEVC) + st->need_parsing = AVSTREAM_PARSE_HEADERS; if (track->default_duration) { av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den, 1000000000, track->default_duration, 30000); |