avcodec/hevc_parser: very minor simplification in hevc_parse()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Sep 2018 00:29:44 +0000 (02:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Sep 2018 18:08:21 +0000 (20:08 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_parser.c

index 01418b2..369d133 100644 (file)
@@ -315,7 +315,7 @@ static int hevc_parse(AVCodecParserContext *s, AVCodecContext *avctx,
         }
     }
 
-    is_dummy_buf = (is_dummy_buf && (dummy_buf == buf));
+    is_dummy_buf &= (dummy_buf == buf);
 
     if (!is_dummy_buf)
         parse_nal_units(s, buf, buf_size, avctx);