diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-11-02 12:03:18 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-11-08 11:22:29 -0500 |
commit | 47a795727f5433f5238a8a244cf181f61ea5af2c (patch) | |
tree | 8874ad1cca517b4938de94746c8ecbe6e0480b6f /libavformat | |
parent | 2fe30b4743c0f4c3bdf37b91ae534cafa85e4036 (diff) | |
download | ffmpeg-47a795727f5433f5238a8a244cf181f61ea5af2c.tar.gz |
hevc: Support extradata changes from multiple stsd
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 194daebc6e..d4454bb218 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1780,13 +1780,11 @@ static int mov_skip_multiple_stsd(MOVContext *c, AVIOContext *pb, int video_codec_id = ff_codec_get_id(ff_codec_movvideo_tags, format); if (codec_tag && - (codec_tag == AV_RL32("hvc1") || - codec_tag == AV_RL32("hev1") || - (codec_tag != format && - // prores is allowed to have differing data format and codec tag - codec_tag != AV_RL32("apcn") && codec_tag != AV_RL32("apch") && - (c->fc->video_codec_id ? video_codec_id != c->fc->video_codec_id - : codec_tag != MKTAG('j','p','e','g'))))) { + (codec_tag != format && + // prores is allowed to have differing data format and codec tag + codec_tag != AV_RL32("apcn") && codec_tag != AV_RL32("apch") && + (c->fc->video_codec_id ? video_codec_id != c->fc->video_codec_id + : codec_tag != MKTAG('j','p','e','g')))) { /* Multiple fourcc, we skip JPEG. This is not correct, we should * export it as a separate AVStream but this needs a few changes * in the MOV demuxer, patch welcome. */ |