[FFmpeg-devel] [PATCH]lavf/nmov: Write colour matrix "6" for color_space bt470bg
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed May 20 18:32:52 CEST 2015
Hi!
Our mov demuxer claims that "6" is bt470bg, so write "6" if
the user specified bt470bg.
Plesae comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b6821d4..0bb92fd 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1608,6 +1608,7 @@ static int mov_write_colr_tag(AVIOContext *pb, MOVTrack *track)
}
switch (track->enc->colorspace) {
case AVCOL_TRC_BT709: avio_wb16(pb, 1); break;
+ case AVCOL_PRI_BT470BG:
case AVCOL_PRI_SMPTE170M: avio_wb16(pb, 6); break;
case AVCOL_PRI_SMPTE240M: avio_wb16(pb, 7); break;
default: avio_wb16(pb, 2);
More information about the ffmpeg-devel
mailing list