aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qdrw.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-02-21 19:16:35 +0100
committerPaul B Mahol <onemda@gmail.com>2017-02-21 19:16:35 +0100
commit4e6b44559a29a18e6e5c2285e1faec7c77e2f527 (patch)
tree2c1f0c6ca76f43689722d10dd540c209e195adef /libavcodec/qdrw.c
parent631f7484918a9e7260377c3cea878be708609e64 (diff)
downloadffmpeg-4e6b44559a29a18e6e5c2285e1faec7c77e2f527.tar.gz
avcodec/qdrw: fix writing past end of row
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/qdrw.c')
-rw-r--r--libavcodec/qdrw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 34b97dc9aa..6e6f4d12aa 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;