diff libdiracenc.c @ 10056:646065f63290 libavcodec

Remove useless braces around if/for/while expressions.
author diego
date Sat, 15 Aug 2009 11:12:47 +0000
parents fdb318d12314
children c6ace59701ce
line wrap: on
line diff
--- a/libdiracenc.c	Sat Aug 15 11:02:50 2009 +0000
+++ b/libdiracenc.c	Sat Aug 15 11:12:47 2009 +0000
@@ -188,25 +188,22 @@
                             avccontext->global_quality / (FF_QP2LAMBDA*10.0);
             /* if it is not default bitrate then send target rate. */
             if (avccontext->bit_rate >= 1000 &&
-                avccontext->bit_rate != 200000) {
+                avccontext->bit_rate != 200000)
                p_dirac_params->enc_ctx.enc_params.trate =
                              avccontext->bit_rate / 1000;
-            }
         } else
             p_dirac_params->enc_ctx.enc_params.lossless = 1;
     } else if (avccontext->bit_rate >= 1000)
         p_dirac_params->enc_ctx.enc_params.trate = avccontext->bit_rate / 1000;
 
     if ((preset > VIDEO_FORMAT_QCIF || preset < VIDEO_FORMAT_QSIF525) &&
-         avccontext->bit_rate == 200000) {
+        avccontext->bit_rate == 200000)
         p_dirac_params->enc_ctx.enc_params.trate = 0;
-    }
 
-    if (avccontext->flags & CODEC_FLAG_INTERLACED_ME) {
+    if (avccontext->flags & CODEC_FLAG_INTERLACED_ME)
         /* all material can be coded as interlaced or progressive
          * irrespective of the type of source material */
         p_dirac_params->enc_ctx.enc_params.picture_coding_mode = 1;
-    }
 
     p_dirac_params->p_encoder = dirac_encoder_init (&(p_dirac_params->enc_ctx),
                                                     verbose );