mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vf_scale: support bt2020 in in/out_color_matrix properties.
This commit is contained in:
parent
c8d95e5ceb
commit
6135aed0d2
@ -237,9 +237,11 @@ static const int *parse_yuv_type(const char *s, enum AVColorSpace colorspace)
|
||||
colorspace = AVCOL_SPC_SMPTE240M;
|
||||
} else if (s && (strstr(s, "bt601") || strstr(s, "bt470") || strstr(s, "smpte170m"))) {
|
||||
colorspace = AVCOL_SPC_BT470BG;
|
||||
} else if (s && strstr(s, "bt2020")) {
|
||||
colorspace = AVCOL_SPC_BT2020_NCL;
|
||||
}
|
||||
|
||||
if (colorspace < 1 || colorspace > 7) {
|
||||
if (colorspace < 1 || colorspace > 10 || colorspace == 8) {
|
||||
colorspace = AVCOL_SPC_BT470BG;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user