changeset 9654:7204dc2922be libavcodec

cosmetics: Remove pointless {}.
author diego
date Fri, 15 May 2009 20:12:45 +0000
parents a572a4628a5a
children 1880dcbb6a80
files libamr.c
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libamr.c	Fri May 15 19:03:45 2009 +0000
+++ b/libamr.c	Fri May 15 20:12:45 2009 +0000
@@ -88,12 +88,8 @@
     int i;
 
     for(i=0;i<8;i++)
-    {
         if(rates[i].rate==bitrate)
-        {
             return rates[i].mode;
-        }
-    }
     /* no bitrate matching, return an error */
     return -1;
 }
@@ -103,14 +99,10 @@
     const int is_amr_wb = 1 + (avctx->codec_id == CODEC_ID_AMR_WB);
 
     if(avctx->sample_rate == 0)
-    {
         avctx->sample_rate = 8000 * is_amr_wb;
-    }
 
     if(avctx->channels == 0)
-    {
         avctx->channels = 1;
-    }
 
     avctx->frame_size = 160 * is_amr_wb;
     avctx->sample_fmt = SAMPLE_FMT_S16;
@@ -329,12 +321,8 @@
     int i;
 
     for(i=0;i<9;i++)
-    {
         if(rates[i].rate==bitrate)
-        {
             return rates[i].mode;
-        }
-    }
     /* no bitrate matching, return an error */
     return -1;
 }
@@ -443,10 +431,9 @@
     int packet_size;
     static const uint8_t block_size[16] = {18, 23, 33, 37, 41, 47, 51, 59, 61, 6, 6, 0, 0, 0, 1, 1};
 
-    if(buf_size==0) {
+    if(buf_size==0)
         /* nothing to do */
         return 0;
-    }
 
     mode = (amrData[0] >> 3) & 0x000F;
     packet_size = block_size[mode];