[FFmpeg-cvslog] movenc: write correct format hvcc when tag is hvc1

John Stebbins git at videolan.org
Wed Jul 5 22:55:54 EEST 2017


ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Thu Jun 15 11:41:15 2017 -0700| [974d508e571085dce43e688595da058804169088] | committer: Derek Buitenhuis

movenc: write correct format hvcc when tag is hvc1

(cherry picked from commit 1ea9b7fdf99b60c0db95a2ce97b2108469bbb245)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 libavformat/movenc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b0ae6bf12d..e7234ac27b 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1126,7 +1126,10 @@ static int mov_write_hvcc_tag(AVIOContext *pb, MOVTrack *track)
 
     avio_wb32(pb, 0);
     ffio_wfourcc(pb, "hvcC");
-    ff_isom_write_hvcc(pb, track->vos_data, track->vos_len, 0);
+    if (track->tag == MKTAG('h','v','c','1'))
+        ff_isom_write_hvcc(pb, track->vos_data, track->vos_len, 1);
+    else
+        ff_isom_write_hvcc(pb, track->vos_data, track->vos_len, 0);
     return update_size(pb, pos);
 }
 



More information about the ffmpeg-cvslog mailing list