diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-04 00:55:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-04 01:02:01 +0200 |
commit | 5eb4af6c5942735b02adf0fac3e9d4cb55b09785 (patch) | |
tree | e2e3680e598d5bf5cc5935a5c637478506f3077f /libavcodec/snowdec.c | |
parent | 93d672967d05f9769bbeb2ac6ceb8cbde302c273 (diff) | |
download | ffmpeg-5eb4af6c5942735b02adf0fac3e9d4cb55b09785.tar.gz |
snow: move init code that depends on picture paramaters to after these parameters are known.
This should fix debug 2048 amongth other things
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowdec.c')
-rw-r--r-- | libavcodec/snowdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index 11a54dca71..f3d4656332 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -406,7 +406,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac s->current_picture.pict_type= AV_PICTURE_TYPE_I; //FIXME I vs. P if(decode_header(s)<0) return -1; - ff_snow_common_init_after_header(avctx); + if ((res=ff_snow_common_init_after_header(avctx)) < 0) + return res; // realloc slice buffer for the case that spatial_decomposition_count changed ff_slice_buffer_destroy(&s->sb); |