[FFmpeg-user] logical express always be true

Ruoyu liangry at ucweb.com
Sat Oct 11 14:24:42 CEST 2014


Hi,

Logical express always be true in libavformat/mov.c, line 954. Is it 
correct?

         if (color_trc >= AVCOL_TRC_LINEAR || color_trc <= 
AVCOL_TRC_LOG_SQRT ||
             color_trc >= AVCOL_TRC_BT2020_10)
             color_trc = AVCOL_TRC_UNSPECIFIED;

Definition of the three constants:

     AVCOL_TRC_LINEAR       = 8
     AVCOL_TRC_LOG_SQRT     = 10
     AVCOL_TRC_BT2020_10    = 14




More information about the ffmpeg-user mailing list