[FFmpeg-cvslog] lavf/mov: document the dvh1 codec switch based on hvcC availability

Jan Ekström git at videolan.org
Mon Dec 17 23:28:00 EET 2018


ffmpeg | branch: master | Jan Ekström <jeebjp at gmail.com> | Mon Dec  3 03:15:29 2018 +0200| [a1f0dd24f62532ff82ac87fbcb01244e6cdfa424] | committer: Jan Ekström

lavf/mov: document the dvh1 codec switch based on hvcC availability

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1f0dd24f62532ff82ac87fbcb01244e6cdfa424
---

 libavformat/mov.c | 5 +++++
 1 file changed, 5 insertions(+)

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;



More information about the ffmpeg-cvslog mailing list