diff --git a/libavcodec/snow.c b/libavcodec/snow.c index dc80ce6f3b..5660eba90d 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -703,7 +703,7 @@ av_cold void ff_snow_common_end(SnowContext *s) for(i=0; iref_mvs[i]); av_freep(&s->ref_scores[i]); - if(s->last_picture[i]->data[0]) { + if(s->last_picture[i] && s->last_picture[i]->data[0]) { av_assert0(s->last_picture[i]->data[0] != s->current_picture->data[0]); } av_frame_free(&s->last_picture[i]);