mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
mdec.c: fix overread.
This commit is contained in:
parent
a26d2b4bc8
commit
32ac63ee10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user