summaryrefslogtreecommitdiff
path: root/libavcodec/libamr.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-05-15 22:41:26 +0000
committerDiego Biurrun <diego@biurrun.de>2009-05-15 22:41:26 +0000
commite0c1e12a62459ddd400ac621e726e8b355ee1958 (patch)
tree4d76eddc91e946c9e96a8f3acb1d3caaed0521ec /libavcodec/libamr.c
parent76b58f9f9498321e2b7af0457d8cdf9ea1c91a74 (diff)
Replace 'x == 0' if conditions with '!x'.
Originally committed as revision 18849 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libamr.c')
-rw-r--r--libavcodec/libamr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libamr.c b/libavcodec/libamr.c
index 506fa501b9..420c185f4a 100644
--- a/libavcodec/libamr.c
+++ b/libavcodec/libamr.c
@@ -98,10 +98,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)
+ if(!avctx->sample_rate)
avctx->sample_rate = 8000 * is_amr_wb;
- if(avctx->channels == 0)
+ if(!avctx->channels)
avctx->channels = 1;
avctx->frame_size = 160 * is_amr_wb;
@@ -431,7 +431,7 @@ 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)
/* nothing to do */
return 0;