diff options
author | John Stebbins <stebbins@jetheaddev.com> | 2017-06-15 11:41:15 -0700 |
---|---|---|
committer | John Stebbins <stebbins@jetheaddev.com> | 2017-06-20 08:08:38 -0700 |
commit | 1ea9b7fdf99b60c0db95a2ce97b2108469bbb245 (patch) | |
tree | f335725f02cde85eab9ebfbb8d1489de99d09100 /libavformat | |
parent | 1c64bae648eeb39c8d8a8d81ee142b9eec9fae7b (diff) | |
download | ffmpeg-streaming-1ea9b7fdf99b60c0db95a2ce97b2108469bbb245.zip ffmpeg-streaming-1ea9b7fdf99b60c0db95a2ce97b2108469bbb245.tar.gz |
movenc: write correct format hvcc when tag is hvc1
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 7791007..f637508 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); } |