Commit 6881bd03 authored by kostya's avatar kostya

Fix off-by-one error in MS RLE decoder which may result into writing past

picture buffer.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18852 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 055140e4
......@@ -134,7 +134,7 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic, int de
{
uint8_t *output, *output_end;
const uint8_t* src = data;
int p1, p2, line=avctx->height, pos=0, i;
int p1, p2, line=avctx->height - 1, pos=0, i;
uint16_t av_uninit(pix16);
uint32_t av_uninit(pix32);
......
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