Commit c3ec963d authored by Nidhi Makhijani's avatar Nidhi Makhijani Committed by Diego Biurrun

mjpeg: return proper error code

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 81b9bf31
......@@ -46,7 +46,7 @@ av_cold int ff_mjpeg_encode_init(MpegEncContext *s)
m = av_malloc(sizeof(MJpegContext));
if (!m)
return -1;
return AVERROR(ENOMEM);
s->min_qcoeff=-1023;
s->max_qcoeff= 1023;
......
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