diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-03-06 21:16:49 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-03-12 18:57:39 +0100 |
commit | d4d74707fbfbe1890f15722c944609a1b4258f39 (patch) | |
tree | 34229acf123fedecc105093ad985af2b59049674 | |
parent | f0349df7c780d99f9bfcd6a9c920726bfaa72b7a (diff) | |
download | ffmpeg-d4d74707fbfbe1890f15722c944609a1b4258f39.tar.gz |
avformat/avidec: recognize H265 fourcc as hevc
Fixes decoding of came2_2020-01-13__20-38-58_21-00-00__Chn2.avi
-rw-r--r-- | libavformat/avidec.c | 3 | ||||
-rw-r--r-- | libavformat/riff.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 412e4a8479..00c3978b2d 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -832,6 +832,9 @@ FF_ENABLE_DEPRECATION_WARNINGS st->need_parsing = AVSTREAM_PARSE_FULL; if (st->codecpar->codec_id == AV_CODEC_ID_RV40) st->need_parsing = AVSTREAM_PARSE_NONE; + if (st->codecpar->codec_id == AV_CODEC_ID_HEVC && + st->codecpar->codec_tag == MKTAG('H', '2', '6', '5')) + st->need_parsing = AVSTREAM_PARSE_FULL; if (st->codecpar->codec_tag == 0 && st->codecpar->height > 0 && st->codecpar->extradata_size < 1U << 30) { diff --git a/libavformat/riff.c b/libavformat/riff.c index 3679b181df..d3719c29c2 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -497,6 +497,7 @@ const AVCodecTag ff_codec_bmp_tags[] = { const AVCodecTag ff_codec_bmp_tags_unofficial[] = { { AV_CODEC_ID_HEVC, MKTAG('H', 'E', 'V', 'C') }, + { AV_CODEC_ID_HEVC, MKTAG('H', '2', '6', '5') }, { AV_CODEC_ID_NONE, 0 } }; |