Mercurial > libavcodec.hg
comparison snow.c @ 2952:d7be13d3ef00 libavcodec
check block_max_depth (fixes crash)
author | michael |
---|---|
date | Sat, 03 Dec 2005 14:20:03 +0000 |
parents | 98a2bd9c8674 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2951:98a2bd9c8674 | 2952:d7be13d3ef00 |
---|---|
3183 | 3183 |
3184 s->qlog= get_symbol(&s->c, s->header_state, 1); | 3184 s->qlog= get_symbol(&s->c, s->header_state, 1); |
3185 s->mv_scale= get_symbol(&s->c, s->header_state, 0); | 3185 s->mv_scale= get_symbol(&s->c, s->header_state, 0); |
3186 s->qbias= get_symbol(&s->c, s->header_state, 1); | 3186 s->qbias= get_symbol(&s->c, s->header_state, 1); |
3187 s->block_max_depth= get_symbol(&s->c, s->header_state, 0); | 3187 s->block_max_depth= get_symbol(&s->c, s->header_state, 0); |
3188 if(s->block_max_depth > 1){ | |
3189 av_log(s->avctx, AV_LOG_ERROR, "block_max_depth= %d is too large", s->block_max_depth); | |
3190 s->block_max_depth= 0; | |
3191 return -1; | |
3192 } | |
3188 | 3193 |
3189 return 0; | 3194 return 0; |
3190 } | 3195 } |
3191 | 3196 |
3192 static void init_qexp(){ | 3197 static void init_qexp(){ |