Mercurial > libavcodec.hg
changeset 9657:8a65ae8929fb libavcodec
Fix off-by-one error in MS RLE decoder which may result into writing past
picture buffer.
author | kostya |
---|---|
date | Sat, 16 May 2009 06:39:08 +0000 |
parents | 03361db4df10 |
children | 67a20f0eb42c |
files | msrledec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/msrledec.c Fri May 15 22:46:29 2009 +0000 +++ b/msrledec.c Sat May 16 06:39:08 2009 +0000 @@ -134,7 +134,7 @@ { 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);