diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-14 15:18:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-14 15:19:47 +0200 |
commit | 6c36b3afe72d1ab635efba36e78c849630ed9ec6 (patch) | |
tree | 2dae84a7a946514fee1369ef4a54689009577e00 | |
parent | 117bc8e6ffc744fedcf77edf2fdb33c964b83370 (diff) | |
download | ffmpeg-6c36b3afe72d1ab635efba36e78c849630ed9ec6.tar.gz |
avcodec/lcldec: initialize encoded correctly
Fixes out of array read
Fixes: yuv111_no_compr_crash.avi
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/lcldec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index bfab58c20c..60069d49c5 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -171,7 +171,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac LclDecContext * const c = avctx->priv_data; unsigned int pixel_ptr; int row, col; - unsigned char *encoded, *outptr; + unsigned char *encoded = avpkt->data, *outptr; uint8_t *y_out, *u_out, *v_out; unsigned int width = avctx->width; // Real image width unsigned int height = avctx->height; // Real image height |