Browse code

tiff: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 659546b42d6550e67fcdbb4937cd1982c60448aa)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/01/14 08:06:44
Showing 1 changed files
... ...
@@ -843,7 +843,7 @@ static int tiff_decode_tag(TiffContext *s)
843 843
             s->fax_opts = value;
844 844
         break;
845 845
 #define ADD_METADATA(count, name, sep)\
846
-    if (ret = add_metadata(count, type, name, sep, s) < 0) {\
846
+    if ((ret = add_metadata(count, type, name, sep, s)) < 0) {\
847 847
         av_log(s->avctx, AV_LOG_ERROR, "Error allocating temporary buffer\n");\
848 848
         return ret;\
849 849
     }