jpegdecoder: return the real error of decode_scan and decode_frame.
The current handle_frame() does not return the real errors happen in decode_scan and decode_frame, which makes the pipeline continue with errors and may trigger asserts.
Edited by He Junyan