Mercurial > libavcodec.hg
comparison snow.c @ 5668:52aae8c63b30 libavcodec
do not ignore return of decode_header()
author | michael |
---|---|
date | Sun, 09 Sep 2007 17:01:11 +0000 |
parents | 9242e125395f |
children | 2f3431b34f0f |
comparison
equal
deleted
inserted
replaced
5667:9242e125395f | 5668:52aae8c63b30 |
---|---|
4436 | 4436 |
4437 ff_init_range_decoder(c, buf, buf_size); | 4437 ff_init_range_decoder(c, buf, buf_size); |
4438 ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); | 4438 ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); |
4439 | 4439 |
4440 s->current_picture.pict_type= FF_I_TYPE; //FIXME I vs. P | 4440 s->current_picture.pict_type= FF_I_TYPE; //FIXME I vs. P |
4441 decode_header(s); | 4441 if(decode_header(s)<0) |
4442 return -1; | |
4442 common_init_after_header(avctx); | 4443 common_init_after_header(avctx); |
4443 | 4444 |
4444 // realloc slice buffer for the case that spatial_decomposition_count changed | 4445 // realloc slice buffer for the case that spatial_decomposition_count changed |
4445 slice_buffer_destroy(&s->sb); | 4446 slice_buffer_destroy(&s->sb); |
4446 slice_buffer_init(&s->sb, s->plane[0].height, (MB_SIZE >> s->block_max_depth) + s->spatial_decomposition_count * 8 + 1, s->plane[0].width, s->spatial_idwt_buffer); | 4447 slice_buffer_init(&s->sb, s->plane[0].height, (MB_SIZE >> s->block_max_depth) + s->spatial_decomposition_count * 8 + 1, s->plane[0].width, s->spatial_idwt_buffer); |