Commit 0e589ce1 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Benoit Fouet

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
parent cc0b6129
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment