Browse Source

avcodec/magicyuv: set correct size of last slice for each plane

Fixes invalid read.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 9 years ago
parent
commit
e8a236add8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/magicyuv.c

+ 1
- 1
libavcodec/magicyuv.c View File

@@ -353,7 +353,7 @@ static int decode_frame(AVCodecContext *avctx,
}

s->slices[i][j].start = offset + header_size;
s->slices[i][j].size = avpkt->size - offset;
s->slices[i][j].size = avpkt->size - s->slices[i][j].start;
}

if (bytestream2_get_byte(&gb) != s->planes)


Loading…
Cancel
Save