Commit dbb1fc10 authored by michael's avatar michael

fix segfault with darkkben.free.fr/corrupted_h264.mp4


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7671 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a5165ebc
......@@ -4889,8 +4889,8 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
if(total_coeff==0)
return 0;
if(total_coeff<0) {
av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff<0)\n", s->mb_x, s->mb_y);
if(total_coeff > (unsigned)max_coeff) {
av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff=%d)\n", s->mb_x, s->mb_y, total_coeff);
return -1;
}
......
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