From 7c809dc3e24a321ed0b1fc3a34442127b762f801 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 15 Aug 2009 11:02:50 +0000 Subject: Simplify 'if' condition statements. Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'. Originally committed as revision 19647 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libschroedingerdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/libschroedingerdec.c') diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index 3985a1ca2d..e1c1844f82 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -196,7 +196,7 @@ static void libschroedinger_handle_first_access_unit(AVCodecContext *avccontext) avccontext->time_base.den = p_schro_params->format->frame_rate_numerator; avccontext->time_base.num = p_schro_params->format->frame_rate_denominator; - if (p_schro_params->dec_pic.data[0] == NULL) + if (!p_schro_params->dec_pic.data[0]) { avpicture_alloc(&p_schro_params->dec_pic, avccontext->pix_fmt, @@ -226,7 +226,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext, *data_size = 0; FfmpegSchroParseContextInit (&parse_ctx, buf, buf_size); - if (buf_size == 0) { + if (!buf_size) { if (!p_schro_params->eos_signalled) { state = schro_decoder_push_end_of_stream(decoder); p_schro_params->eos_signalled = 1; @@ -300,7 +300,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext, /* Grab next frame to be returned from the top of the queue. */ frame = ff_dirac_schro_queue_pop(&p_schro_params->dec_frame_queue); - if (frame != NULL) { + if (frame) { memcpy (p_schro_params->dec_pic.data[0], frame->components[0].data, frame->components[0].length); -- cgit v1.2.3