Commit 32ac63ee authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

mdec.c: fix overread.

parent a26d2b4b
......@@ -125,7 +125,8 @@ static inline int decode_mb(MDECContext *a, DCTELEM block[6][64]){
a->dsp.clear_blocks(block[0]);
for(i=0; i<6; i++){
if( mdec_decode_block_intra(a, block[ block_index[i] ], block_index[i]) < 0)
if( mdec_decode_block_intra(a, block[ block_index[i] ], block_index[i]) < 0 ||
get_bits_left(&a->gb) < 0)
return -1;
}
return 0;
......
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