Commit 0499fb78 authored by benoit's avatar benoit

Return an error when ff_jpegls_decode_picture fails.

Patch by Mathieu Malaterre: name.surname at gmail


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14535 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08d09e47
...@@ -834,7 +834,8 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s) ...@@ -834,7 +834,8 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s)
// for(){ // for(){
// reset_ls_coding_parameters(s, 0); // 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{ }else{
if(s->rgb){ if(s->rgb){
if(ljpeg_decode_rgb_scan(s, predictor, point_transform) < 0) 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