summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-12-03 03:15:29 +0200
committerJan Ekström <jeebjp@gmail.com>2018-12-17 23:25:43 +0200
commita1f0dd24f62532ff82ac87fbcb01244e6cdfa424 (patch)
treee016732dbc305a9c5685915e9dc72b1c702b5117 /libavformat/mov.c
parent6ebe88f3a4c427511eba7495896f4a57a2b4b529 (diff)
lavf/mov: document the dvh1 codec switch based on hvcC availability
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6f92742e23..fb95fd2fef 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1907,6 +1907,11 @@ static int mov_read_glbl(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (ret < 0)
return ret;
if (atom.type == MKTAG('h','v','c','C') && st->codecpar->codec_tag == MKTAG('d','v','h','1'))
+ /* HEVC-based Dolby Vision derived from hvc1.
+ Happens to match with an identifier
+ previously utilized for DV. Thus, if we have
+ the hvcC extradata box available as specified,
+ set codec to HEVC */
st->codecpar->codec_id = AV_CODEC_ID_HEVC;
return 0;