mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
cosmetics: Write NULL pointer equality checks more compactly
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
efd26bedec
commit
f929ab0569
@@ -215,7 +215,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
|
||||
break;
|
||||
}
|
||||
ptr = ff_h264_decode_nal(h, buf, &dst_length, &consumed, src_length);
|
||||
if (ptr == NULL || dst_length < 0)
|
||||
if (!ptr || dst_length < 0)
|
||||
break;
|
||||
|
||||
init_get_bits(&h->gb, ptr, 8 * dst_length);
|
||||
|
||||
Reference in New Issue
Block a user