mjpeg: return proper error code

Signed-off-by: Diego Biurrun <diego@biurrun.de>