diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-21 01:04:57 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-05-21 01:04:57 +0200 |
commit | 4fb3efd2c17c419cb7a170e5438b35453ceaaf30 (patch) | |
tree | 189aefd2ac95b1ae4ad0fee145ca1b17fa4b23f8 | |
parent | c4f864193f9753df3f721d5cebe39f32bd04ac11 (diff) | |
download | ffmpeg-4fb3efd2c17c419cb7a170e5438b35453ceaaf30.tar.gz |
lavf/mov: Use AVCOL_SPC constants when checking color_space.
Suggested-by: Ronald Bultje
-rw-r--r-- | libavformat/movenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 4aa64b097a..9cad1ae06b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1607,10 +1607,10 @@ static int mov_write_colr_tag(AVIOContext *pb, MOVTrack *track) default: avio_wb16(pb, 2); } switch (track->enc->colorspace) { - case AVCOL_TRC_BT709: avio_wb16(pb, 1); break; + case AVCOL_SPC_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; + case AVCOL_SPC_SMPTE170M: avio_wb16(pb, 6); break; + case AVCOL_SPC_SMPTE240M: avio_wb16(pb, 7); break; default: avio_wb16(pb, 2); } |