changeset 7478:12d42593e467 libavcodec

Return an error when ff_jpegls_decode_picture fails. Patch by Mathieu Malaterre: name.surname at gmail
author benoit
date Mon, 04 Aug 2008 08:25:38 +0000
parents 2f6a2fd238fb
children 6abd94f87b45
files mjpegdec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mjpegdec.c	Mon Aug 04 07:49:50 2008 +0000
+++ b/mjpegdec.c	Mon Aug 04 08:25:38 2008 +0000
@@ -834,7 +834,8 @@
 //            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)