diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 126acf3cb5..db5a95685a 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -456,9 +456,14 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){ FF_ALLOCZ_OR_GOTO(avctx, s->temp_idwt_buffer, width * sizeof(IDWTELEM), fail); FF_ALLOC_OR_GOTO(avctx, s->run_buffer, ((width + 1) >> 1) * ((height + 1) >> 1) * sizeof(*s->run_buffer), fail); - for(i=0; ilast_picture[i]); + } + + avcodec_get_frame_defaults(&s->mconly_picture); + avcodec_get_frame_defaults(&s->current_picture); return 0; fail: