cosmetics: Write NULL pointer equality checks more compactly

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Gabriel Dume
2014-08-14 16:31:24 -04:00
committed by Diego Biurrun
parent efd26bedec
commit f929ab0569
53 changed files with 95 additions and 97 deletions

View File

@@ -954,7 +954,7 @@ AVFrame *avcodec_alloc_frame(void)
{
AVFrame *frame = av_mallocz(sizeof(AVFrame));
if (frame == NULL)
if (!frame)
return NULL;
FF_DISABLE_DEPRECATION_WARNINGS