[FFmpeg-cvslog] avcodec/qdrw: fix writing past end of row

Paul B Mahol git at videolan.org
Tue Feb 21 20:18:45 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Feb 21 19:16:35 2017 +0100| [4e6b44559a29a18e6e5c2285e1faec7c77e2f527] | committer: Paul B Mahol

avcodec/qdrw: fix writing past end of row

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e6b44559a29a18e6e5c2285e1faec7c77e2f527
---

 libavcodec/qdrw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 34b97dc..6e6f4d1 100644
--- a/libavcodec/qdrw.c
+++ b/libavcodec/qdrw.c
@@ -70,7 +70,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
 
 static int decode_rle16(AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc)
 {
-    int offset = avctx->width * 2;
+    int offset = avctx->width;
     uint8_t *outdata = p->data[0];
     int i, j;
 



More information about the ffmpeg-cvslog mailing list