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/libschroedingerenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/libschroedingerenc.c') diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c index 965096ab01..aadf061ad3 100644 --- a/libavcodec/libschroedingerenc.c +++ b/libavcodec/libschroedingerenc.c @@ -145,7 +145,7 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext) avccontext->coded_frame = &p_schro_params->picture; - if (avccontext->gop_size == 0){ + if (!avccontext->gop_size) { schro_encoder_setting_set_double (p_schro_params->encoder, "gop_structure", SCHRO_ENCODER_GOP_INTRA_ONLY); @@ -164,7 +164,7 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext) /* FIXME - Need to handle SCHRO_ENCODER_RATE_CONTROL_LOW_DELAY. */ if (avccontext->flags & CODEC_FLAG_QSCALE) { - if (avccontext->global_quality == 0) { + if (!avccontext->global_quality) { /* lossless coding */ schro_encoder_setting_set_double (p_schro_params->encoder, "rate_control", @@ -366,7 +366,7 @@ static int libschroedinger_encode_frame(AVCodecContext *avccontext, p_frame_output = ff_dirac_schro_queue_pop (&p_schro_params->enc_frame_queue); - if (p_frame_output == NULL) + if (!p_frame_output) return 0; memcpy(frame, p_frame_output->p_encbuf, p_frame_output->size); -- cgit v1.2.3