diff libdirac_libschro.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 965220ebc611
line wrap: on
line diff
--- a/libdirac_libschro.c	Sat Aug 15 11:02:50 2009 +0000
+++ b/libdirac_libschro.c	Sat Aug 15 11:12:47 2009 +0000
@@ -59,9 +59,8 @@
             avccontext->height == vf->height){
             ret_idx = idx;
             if (avccontext->time_base.den == vf->frame_rate_num &&
-                avccontext->time_base.num == vf->frame_rate_denom) {
+                avccontext->time_base.num == vf->frame_rate_denom)
                 return idx;
-            }
         }
     }
     return ret_idx;
@@ -76,9 +75,8 @@
 void ff_dirac_schro_queue_free (FfmpegDiracSchroQueue *queue,
                                 void (*free_func)(void *))
 {
-    while (queue->p_head) {
+    while (queue->p_head)
         free_func( ff_dirac_schro_queue_pop(queue) );
-    }
 }
 
 int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data)