mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit '74b02377980321934e33969c84733ace7e9f4eeb'
* commit '74b02377980321934e33969c84733ace7e9f4eeb': mov: Correctly check the color transfer characteristics range Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
16f9f7b881
@ -967,7 +967,8 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
* 23001-8) so some adjusting is required */
|
||||
if (color_primaries >= AVCOL_PRI_FILM)
|
||||
color_primaries = AVCOL_PRI_UNSPECIFIED;
|
||||
if (color_trc >= AVCOL_TRC_LINEAR || color_trc <= AVCOL_TRC_LOG_SQRT ||
|
||||
if ((color_trc >= AVCOL_TRC_LINEAR &&
|
||||
color_trc <= AVCOL_TRC_LOG_SQRT) ||
|
||||
color_trc >= AVCOL_TRC_BT2020_10)
|
||||
color_trc = AVCOL_TRC_UNSPECIFIED;
|
||||
if (color_matrix >= AVCOL_SPC_BT2020_NCL)
|
||||
|
Loading…
Reference in New Issue
Block a user