diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c index 01418b276d..369d1338d0 100644 --- a/libavcodec/hevc_parser.c +++ b/libavcodec/hevc_parser.c @@ -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);