avcodec/pngdec: Fix () placement
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 22 Aug 2017 16:36:26 +0000 (18:36 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 22 Aug 2017 16:55:11 +0000 (18:55 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c

index 4fc1c5a..dce8faf 100644 (file)
@@ -858,7 +858,7 @@ static int decode_iccp_chunk(PNGDecContext *s, int length, AVFrame *f)
 
     length = FFMAX(length - 1, 0);
 
-    if ((ret = decode_zbuf(&bp, s->gb.buffer, s->gb.buffer + length) < 0))
+    if ((ret = decode_zbuf(&bp, s->gb.buffer, s->gb.buffer + length)) < 0)
         return ret;
 
     av_bprint_finalize(&bp, (char **)&data);