mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/utils: Fix warning: comparison between enum foo and enum bar [-Wenum-compare]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9889b29ff4
commit
f6a8c77afb
|
@ -3023,8 +3023,8 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
|
||||||
if (enc->colorspace != AVCOL_SPC_UNSPECIFIED ||
|
if (enc->colorspace != AVCOL_SPC_UNSPECIFIED ||
|
||||||
enc->color_primaries != AVCOL_PRI_UNSPECIFIED ||
|
enc->color_primaries != AVCOL_PRI_UNSPECIFIED ||
|
||||||
enc->color_trc != AVCOL_TRC_UNSPECIFIED) {
|
enc->color_trc != AVCOL_TRC_UNSPECIFIED) {
|
||||||
if (enc->colorspace != enc->color_primaries ||
|
if (enc->colorspace != (int)enc->color_primaries ||
|
||||||
enc->colorspace != enc->color_trc) {
|
enc->colorspace != (int)enc->color_trc) {
|
||||||
new_line = 1;
|
new_line = 1;
|
||||||
av_strlcatf(detail, sizeof(detail), "%s/%s/%s, ",
|
av_strlcatf(detail, sizeof(detail), "%s/%s/%s, ",
|
||||||
av_color_space_name(enc->colorspace),
|
av_color_space_name(enc->colorspace),
|
||||||
|
|
Loading…
Reference in New Issue