Commit b4c3a8e7 authored by reimar's avatar reimar

Fix crash when pred_order greater s->blocksize >> rice_order.

Fixes http://sam.zoy.org/zzuf/lol-mplayer.flac


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7595 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1f3d5b63
......@@ -225,6 +225,10 @@ static int decode_residuals(FLACContext *s, int channel, int pred_order)
rice_order = get_bits(&s->gb, 4);
samples= s->blocksize >> rice_order;
if (pred_order > samples) {
av_log(s->avctx, AV_LOG_ERROR, "invalid predictor order: %i > %i\n", pred_order, samples);
return -1;
}
sample=
i= pred_order;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment