diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-11-02 14:12:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-11-02 14:12:25 +0000 |
commit | ad9feac9fb1a55b41fb2cc21832fad1109e37bda (patch) | |
tree | ea294afa27b5c2ca8ba10cd5d785ef1881eb9716 /libavcodec/mjpegdec.h | |
parent | e47ca4f798b753a1abdb8a41edf74a7c99dfa703 (diff) | |
download | ffmpeg-ad9feac9fb1a55b41fb2cc21832fad1109e37bda.tar.gz |
Avoid huge array for rgb ljpeg on the stack.
Code tested with an ljpeg i had laying around.
Originally committed as revision 20433 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.h')
-rw-r--r-- | libavcodec/mjpegdec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.h b/libavcodec/mjpegdec.h index d7a33b8c4f..71773fb32e 100644 --- a/libavcodec/mjpegdec.h +++ b/libavcodec/mjpegdec.h @@ -102,6 +102,9 @@ typedef struct MJpegDecodeContext { int cur_scan; /* current scan, used by JPEG-LS */ int flipped; /* true if picture is flipped */ + + uint16_t (*ljpeg_buffer)[4]; + unsigned int ljpeg_buffer_size; } MJpegDecodeContext; int ff_mjpeg_decode_init(AVCodecContext *avctx); |