]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_refs.c
cosmetics: Write NULL pointer equality checks more compactly
[ffmpeg] / libavcodec / h264_refs.c
index ffe1fcc0b033ed85078528ce53a1f873619b997f..af7fa7b5237671047d2f5cfa6b6ddee6a3862014 100644 (file)
@@ -759,7 +759,7 @@ int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb,
                             (h->max_pic_num - 1);
 #if 0
                     if (mmco[i].short_pic_num >= h->short_ref_count ||
-                        h->short_ref[ mmco[i].short_pic_num ] == NULL){
+                        !h->short_ref[ mmco[i].short_pic_num ]) {
                         av_log(s->avctx, AV_LOG_ERROR,
                                "illegal short ref in memory management control "
                                "operation %d\n", mmco);