summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2017-06-15 11:41:15 -0700
committerJohn Stebbins <stebbins@jetheaddev.com>2017-06-20 08:08:38 -0700
commit1ea9b7fdf99b60c0db95a2ce97b2108469bbb245 (patch)
treef335725f02cde85eab9ebfbb8d1489de99d09100
parent1c64bae648eeb39c8d8a8d81ee142b9eec9fae7b (diff)
movenc: write correct format hvcc when tag is hvc1
-rw-r--r--libavformat/movenc.c5
1 files changed, 4 insertions, 1 deletions
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);
}