mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
lavf/mov: Use AVCOL_SPC constants when checking color_space.
Suggested-by: Ronald Bultje
This commit is contained in:
parent
c4f864193f
commit
4fb3efd2c1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user