Commit e84f01e5 authored by reimar's avatar reimar

Make the MJPEG decoder return -1 when no image was decoded so that decode

errors are actually recognizable as such.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19343 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e8e9152
......@@ -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;
......
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