Commit 4e6b4455 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/qdrw: fix writing past end of row

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 631f7484
...@@ -70,7 +70,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc, ...@@ -70,7 +70,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
static int decode_rle16(AVCodecContext *avctx, AVFrame *p, 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]; uint8_t *outdata = p->data[0];
int i, j; int i, j;
......
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