aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-11-02 14:12:25 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-11-02 14:12:25 +0000
commitad9feac9fb1a55b41fb2cc21832fad1109e37bda (patch)
treeea294afa27b5c2ca8ba10cd5d785ef1881eb9716 /libavcodec/mjpegdec.h
parente47ca4f798b753a1abdb8a41edf74a7c99dfa703 (diff)
downloadffmpeg-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.h3
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);