aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorNidhi Makhijani <nidhimj22@gmail.com>2014-07-21 12:41:46 +0530
committerDiego Biurrun <diego@biurrun.de>2014-07-21 01:25:33 -0700
commitc3ec963d0d0fac2d817f7fbce2e89ed46eeba550 (patch)
treefc126a1d425dc5792920e342f61f120e91b5d4ea /libavcodec
parent81b9bf319226fe03436c80aaa8a2c91767cab7ce (diff)
downloadffmpeg-c3ec963d0d0fac2d817f7fbce2e89ed46eeba550.tar.gz
mjpeg: return proper error code
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mjpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 9ce07def8f..fdb882e71c 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -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;