Merge commit '4b1f5e5090abed6c618c8ba380cd7d28d140f867'
[ffmpeg.git] / libavcodec / vc1dec.c
index 7b7de45..bcfa4df 100644 (file)
@@ -6229,7 +6229,7 @@ image:
                 goto err;
             ff_print_debug_info(s, s->current_picture_ptr, pict);
             *got_frame = 1;
-        } else if (s->last_picture_ptr != NULL) {
+        } else if (s->last_picture_ptr) {
             if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0)
                 goto err;
             ff_print_debug_info(s, s->last_picture_ptr, pict);