diff mjpegdec.h @ 10487:3e404d2520a7 libavcodec

Avoid huge array for rgb ljpeg on the stack. Code tested with an ljpeg i had laying around.
author michael
date Mon, 02 Nov 2009 14:12:25 +0000
parents 710e226783f0
children 34a65026fa06
line wrap: on
line diff
--- a/mjpegdec.h	Mon Nov 02 00:10:10 2009 +0000
+++ b/mjpegdec.h	Mon Nov 02 14:12:25 2009 +0000
@@ -102,6 +102,9 @@
 
     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);