mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
cc0b61292a
commit
0e589ce151
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user