Mercurial > libavcodec.hg
comparison snow.c @ 9369:539e18dfc86a libavcodec
Check spatial_decomposition_count too, fixes another crash.
author | michael |
---|---|
date | Thu, 09 Apr 2009 18:37:26 +0000 |
parents | 86decbea7c1c |
children | 25fa07ef8e2b |
comparison
equal
deleted
inserted
replaced
9368:86decbea7c1c | 9369:539e18dfc86a |
---|---|
3579 if(s->keyframe){ | 3579 if(s->keyframe){ |
3580 GET_S(s->version, tmp <= 0U) | 3580 GET_S(s->version, tmp <= 0U) |
3581 s->always_reset= get_rac(&s->c, s->header_state); | 3581 s->always_reset= get_rac(&s->c, s->header_state); |
3582 s->temporal_decomposition_type= get_symbol(&s->c, s->header_state, 0); | 3582 s->temporal_decomposition_type= get_symbol(&s->c, s->header_state, 0); |
3583 s->temporal_decomposition_count= get_symbol(&s->c, s->header_state, 0); | 3583 s->temporal_decomposition_count= get_symbol(&s->c, s->header_state, 0); |
3584 s->spatial_decomposition_count= get_symbol(&s->c, s->header_state, 0); | 3584 GET_S(s->spatial_decomposition_count, tmp <= (unsigned)MAX_DECOMPOSITIONS) |
3585 s->colorspace_type= get_symbol(&s->c, s->header_state, 0); | 3585 s->colorspace_type= get_symbol(&s->c, s->header_state, 0); |
3586 s->chroma_h_shift= get_symbol(&s->c, s->header_state, 0); | 3586 s->chroma_h_shift= get_symbol(&s->c, s->header_state, 0); |
3587 s->chroma_v_shift= get_symbol(&s->c, s->header_state, 0); | 3587 s->chroma_v_shift= get_symbol(&s->c, s->header_state, 0); |
3588 s->spatial_scalability= get_rac(&s->c, s->header_state); | 3588 s->spatial_scalability= get_rac(&s->c, s->header_state); |
3589 // s->rate_scalability= get_rac(&s->c, s->header_state); | 3589 // s->rate_scalability= get_rac(&s->c, s->header_state); |
3612 s->plane[2].diag_mc= s->plane[1].diag_mc; | 3612 s->plane[2].diag_mc= s->plane[1].diag_mc; |
3613 s->plane[2].htaps = s->plane[1].htaps; | 3613 s->plane[2].htaps = s->plane[1].htaps; |
3614 memcpy(s->plane[2].hcoeff, s->plane[1].hcoeff, sizeof(s->plane[1].hcoeff)); | 3614 memcpy(s->plane[2].hcoeff, s->plane[1].hcoeff, sizeof(s->plane[1].hcoeff)); |
3615 } | 3615 } |
3616 if(get_rac(&s->c, s->header_state)){ | 3616 if(get_rac(&s->c, s->header_state)){ |
3617 s->spatial_decomposition_count= get_symbol(&s->c, s->header_state, 0); | 3617 GET_S(s->spatial_decomposition_count, tmp <= (unsigned)MAX_DECOMPOSITIONS) |
3618 decode_qlogs(s); | 3618 decode_qlogs(s); |
3619 } | 3619 } |
3620 } | 3620 } |
3621 | 3621 |
3622 s->spatial_decomposition_type+= get_symbol(&s->c, s->header_state, 1); | 3622 s->spatial_decomposition_type+= get_symbol(&s->c, s->header_state, 1); |