diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 04:29:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 10:35:51 +0100 |
commit | c536253854eadf9ebf5aa0506657f9c24e522e57 (patch) | |
tree | 6433680709fade7b8faf5e61b7d9ad9189c7fa3a /libavcodec/snow.c | |
parent | b5e5ed8ea707fefcab15dbfa3fa0dc2f36e5275a (diff) | |
download | ffmpeg-c536253854eadf9ebf5aa0506657f9c24e522e57.tar.gz |
snow: set frame defaults
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; i<MAX_REF_FRAMES; i++) + for(i=0; i<MAX_REF_FRAMES; i++) { for(j=0; j<MAX_REF_FRAMES; j++) ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1); + avcodec_get_frame_defaults(&s->last_picture[i]); + } + + avcodec_get_frame_defaults(&s->mconly_picture); + avcodec_get_frame_defaults(&s->current_picture); return 0; fail: |