summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-04-22 01:25:40 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2017-05-16 01:53:05 +0200
commit64ad44a3817a288168ba97f6c022160b940cd22e (patch)
tree5dad24334f5fd9e0e61cfbb122d5691b15c4963c /libavformat/movenc.c
parent4c55144ee969a63bb5e469e3ebd7179b7b3616e8 (diff)
movenc/isom: update vpcC box to version 1.0 of the specification
This brings our generation of the vpcC box up to date to version 1.0 of the VP Codec ISO Media File Format Binding. Specifically, color/transfer properties are now written with values based on ISO/IEC 23001-8, which is the same reference specification the AVColor* enumerations are based on.
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index d20d272f89..a6c0662cd0 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1112,7 +1112,8 @@ static int mov_write_vpcc_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra
avio_wb32(pb, 0);
ffio_wfourcc(pb, "vpcC");
- avio_wb32(pb, 0); /* version & flags */
+ avio_w8(pb, 1); /* version */
+ avio_wb24(pb, 0); /* flags */
ff_isom_write_vpcc(s, pb, track->par);
return update_size(pb, pos);
}