Skip to content
Snippets Groups Projects
Commit e4463f21 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Simplify last coeff check in mjpeg decode_block()

Originally committed as revision 25547 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2111a191
No related branches found
No related tags found
No related merge requests found
...@@ -432,12 +432,7 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block, ...@@ -432,12 +432,7 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
LAST_SKIP_BITS(re, &s->gb, code) LAST_SKIP_BITS(re, &s->gb, code)
if (i >= 63) { if (i > 63) {
if(i == 63){
j = s->scantable.permutated[63];
block[j] = level * quant_matrix[j];
break;
}
av_log(s->avctx, AV_LOG_ERROR, "error count: %d\n", i); av_log(s->avctx, AV_LOG_ERROR, "error count: %d\n", i);
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment