[FFmpeg-cvslog] lavf/mov: Write colour matrix "6" for color_space bt470bg.

Carl Eugen Hoyos git at videolan.org
Thu May 21 02:14:28 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu May 21 00:44:34 2015 +0200| [c4f864193f9753df3f721d5cebe39f32bd04ac11] | committer: Carl Eugen Hoyos

lavf/mov: Write colour matrix "6" for color_space bt470bg.

This matches the demuxer's behaviour.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4f864193f9753df3f721d5cebe39f32bd04ac11
---

 libavformat/movenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b6821d4..4aa64b0 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_SPC_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-cvslog mailing list