forked from FFmpeg/FFmpeg
mjpeg: return proper error code
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
81b9bf3192
commit
c3ec963d0d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue