[FFmpeg-soc] [soc]: r3807 - in dirac/libavcodec: dirac.c diracdec.c

conrad subversion at mplayerhq.hu
Tue Nov 11 09:38:00 CET 2008


Author: conrad
Date: Tue Nov 11 09:37:59 2008
New Revision: 3807

Log:
Cosmetics: uneeded braces


Modified:
   dirac/libavcodec/dirac.c
   dirac/libavcodec/diracdec.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Tue Nov 11 09:37:59 2008
@@ -1128,9 +1128,8 @@ int dirac_motion_compensation(DiracConte
         }
     }
 
-    if (avcodec_check_dimensions(s->avctx, s->refwidth, s->refheight)) {
+    if (avcodec_check_dimensions(s->avctx, s->refwidth, s->refheight))
         return -1;
-    }
 
     for (i = 0; i < s->refs; i++) {
         refidx[i] = dirac_reference_frame_idx(s, s->ref[i]);

Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c	(original)
+++ dirac/libavcodec/diracdec.c	Tue Nov 11 09:37:59 2008
@@ -645,9 +645,8 @@ static int dirac_decode_frame_internal(D
     int16_t *synth;
 
     if (avcodec_check_dimensions(s->avctx, s->padded_luma_width,
-                                 s->padded_luma_height)) {
+                                 s->padded_luma_height))
         return -1;
-    }
 
     coeffs = av_malloc(s->padded_luma_width * s->padded_luma_height
                        * sizeof(int16_t));
@@ -886,9 +885,8 @@ int dirac_decode_frame(AVCodecContext *a
     avctx->pix_fmt = PIX_FMT_YUV420P; /* XXX */
 
     if (avcodec_check_dimensions(avctx, s->source.luma_width,
-                                 s->source.luma_height)) {
+                                 s->source.luma_height))
         return -1;
-    }
 
     avcodec_set_dimensions(avctx, s->source.luma_width,
                            s->source.luma_height);



More information about the FFmpeg-soc mailing list