]> git.sesse.net Git - ffmpeg/commitdiff
lavf/mov: document the dvh1 codec switch based on hvcC availability
authorJan Ekström <jeebjp@gmail.com>
Mon, 3 Dec 2018 01:15:29 +0000 (03:15 +0200)
committerJan Ekström <jeebjp@gmail.com>
Mon, 17 Dec 2018 21:25:43 +0000 (23:25 +0200)
libavformat/mov.c

index 6f92742e2353f13c7eb3a5d1665bd136ec96fefe..fb95fd2fefb50ef97ee82c3bf83ce19e8f520309 100644 (file)
@@ -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;