fraps: check overread per sample instead of per line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-09 19:40:59 +01:00
parent 46082e6186
commit 82a1d57575
1 changed files with 4 additions and 4 deletions

View File

@ -112,12 +112,12 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
*/
if(j) dst[i] += dst[i - stride];
else if(Uoff) dst[i] += 0x80;
if(get_bits_left(&gb) < 0){
free_vlc(&vlc);
return -1;
}
}
dst += stride;
if(get_bits_left(&gb) < 0){
free_vlc(&vlc);
return -1;
}
}
free_vlc(&vlc);
return 0;