[FFmpeg-cvslog] movenc: write correct format hvcc when tag is hvc1
John Stebbins
git at videolan.org
Fri Nov 3 02:58:02 EET 2017
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Thu Jun 15 11:41:15 2017 -0700| [1ea9b7fdf99b60c0db95a2ce97b2108469bbb245] | committer: John Stebbins
movenc: write correct format hvcc when tag is hvc1
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ea9b7fdf99b60c0db95a2ce97b2108469bbb245
---
libavformat/movenc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 7791007b09..f63750890a 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -727,7 +727,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