diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
commit | 7c809dc3e24a321ed0b1fc3a34442127b762f801 (patch) | |
tree | 73039cb645ad3ffeacdc54f779dc90a3444b2ad5 /libavcodec/libschroedingerenc.c | |
parent | cea0b5272d82c19c86dfcc3c61e097f4df9a4c2d (diff) | |
download | ffmpeg-7c809dc3e24a321ed0b1fc3a34442127b762f801.tar.gz |
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
Diffstat (limited to 'libavcodec/libschroedingerenc.c')
-rw-r--r-- | libavcodec/libschroedingerenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |