mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
cosmetics: Write NULL pointer inequality checks more compactly
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
f929ab0569
commit
4b1f5e5090
@@ -107,7 +107,7 @@ av_cold void avcodec_register(AVCodec *codec)
|
||||
AVCodec **p;
|
||||
avcodec_init();
|
||||
p = &first_avcodec;
|
||||
while (*p != NULL)
|
||||
while (*p)
|
||||
p = &(*p)->next;
|
||||
*p = codec;
|
||||
codec->next = NULL;
|
||||
@@ -473,7 +473,7 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
|
||||
FramePool *pool = s->internal->pool;
|
||||
int i;
|
||||
|
||||
if (pic->data[0] != NULL) {
|
||||
if (pic->data[0]) {
|
||||
av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user