From 0e589ce1518237863a8e63e3dccdd732f86e469f Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 4 Aug 2008 08:25:38 +0000 Subject: [PATCH] Return an error when ff_jpegls_decode_picture fails. Patch by Mathieu Malaterre: name.surname at gmail Originally committed as revision 14535 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpegdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 06394f566b..b302c8a05a 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -834,7 +834,8 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s) // for(){ // reset_ls_coding_parameters(s, 0); - ff_jpegls_decode_picture(s, predictor, point_transform, ilv); + if(ff_jpegls_decode_picture(s, predictor, point_transform, ilv) < 0) + return -1; }else{ if(s->rgb){ if(ljpeg_decode_rgb_scan(s, predictor, point_transform) < 0)