Commit 82a1d575 authored by Michael Niedermayer's avatar Michael Niedermayer

fraps: check overread per sample instead of per line

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 46082e61
......@@ -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;
......
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