diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index e8f2a8d92e..5be154fbb2 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -843,7 +843,7 @@ static int tiff_decode_tag(TiffContext *s) s->fax_opts = value; break; #define ADD_METADATA(count, name, sep)\ - if (ret = add_metadata(count, type, name, sep, s) < 0) {\ + if ((ret = add_metadata(count, type, name, sep, s)) < 0) {\ av_log(s->avctx, AV_LOG_ERROR, "Error allocating temporary buffer\n");\ return ret;\ }