From c536253854eadf9ebf5aa0506657f9c24e522e57 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 12 Mar 2013 04:29:00 +0100 Subject: snow: set frame defaults Signed-off-by: Michael Niedermayer --- libavcodec/snow.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavcodec') 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: -- cgit v1.2.3