mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-26 13:00:33 +00:00
Make the MJPEG decoder return -1 when no image was decoded so that decode
errors are actually recognizable as such. Originally committed as revision 19343 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
643fd8a198
commit
1496b04c28
@ -1479,6 +1479,8 @@ not_the_end:
|
||||
}
|
||||
}
|
||||
}
|
||||
av_log(avctx, AV_LOG_FATAL, "No JPEG data found in image\n");
|
||||
return -1;
|
||||
the_end:
|
||||
av_log(avctx, AV_LOG_DEBUG, "mjpeg decode frame unused %td bytes\n", buf_end - buf_ptr);
|
||||
// return buf_end - buf_ptr;
|
||||
|
Loading…
Reference in New Issue
Block a user