diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-05-15 20:12:45 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-05-15 20:12:45 +0000 |
commit | 76b58f9f9498321e2b7af0457d8cdf9ea1c91a74 (patch) | |
tree | 2c8ecb0d8fd01896813cfbf4872f9904b0cdea66 | |
parent | e09989be4547c8178cd0c174c20c44e919e94a5d (diff) | |
download | ffmpeg-76b58f9f9498321e2b7af0457d8cdf9ea1c91a74.tar.gz |
cosmetics: Remove pointless {}.
Originally committed as revision 18848 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/libamr.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libavcodec/libamr.c b/libavcodec/libamr.c index 98fcc2d28f..506fa501b9 100644 --- a/libavcodec/libamr.c +++ b/libavcodec/libamr.c @@ -88,12 +88,8 @@ static int getBitrateMode(int bitrate) 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 @@ static void amr_decode_fix_avctx(AVCodecContext * avctx) 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 @@ static int getWBBitrateMode(int bitrate) 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 @@ static int amr_wb_decode_frame(AVCodecContext * avctx, 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]; |