Simplify another 'if' condition: Replace 'exp == 0' by '!exp'.
authorDiego Biurrun <diego@biurrun.de>
Sat, 15 Aug 2009 11:31:42 +0000 (11:31 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 15 Aug 2009 11:31:42 +0000 (11:31 +0000)
Originally committed as revision 19650 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libschroedingerenc.c

index f8fea16..18bff3e 100644 (file)
@@ -261,7 +261,7 @@ static int libschroedinger_encode_frame(AVCodecContext *avccontext,
     int parse_code;
     int last_frame_in_sequence = 0;
 
     int parse_code;
     int last_frame_in_sequence = 0;
 
-    if(data == NULL) {
+    if (!data) {
         /* Push end of sequence if not already signalled. */
         if (!p_schro_params->eos_signalled) {
             schro_encoder_end_of_stream(encoder);
         /* Push end of sequence if not already signalled. */
         if (!p_schro_params->eos_signalled) {
             schro_encoder_end_of_stream(encoder);