Mercurial > libavcodec.hg
comparison snow.c @ 9366:48eb9ec4e318 libavcodec
Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).
author | michael |
---|---|
date | Thu, 09 Apr 2009 15:33:02 +0000 |
parents | 48813960f5d5 |
children | b32ece43b8a2 |
comparison
equal
deleted
inserted
replaced
9365:48813960f5d5 | 9366:48eb9ec4e318 |
---|---|
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); |
3623 if(s->spatial_decomposition_type > 1){ | 3623 if(s->spatial_decomposition_type > 1U){ |
3624 av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported", s->spatial_decomposition_type); | 3624 av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported", s->spatial_decomposition_type); |
3625 return -1; | 3625 return -1; |
3626 } | 3626 } |
3627 | 3627 |
3628 s->qlog += get_symbol(&s->c, s->header_state, 1); | 3628 s->qlog += get_symbol(&s->c, s->header_state, 1); |