aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-02-09 14:05:13 +0000
committerPaul B Mahol <onemda@gmail.com>2015-02-09 14:07:54 +0000
commit238247b622912019243b7abcd016cc4a0f5d3b6d (patch)
treed0bdf29cadf0aa3aa949acf8474b6dd08425d77d
parent5763f675024765df8f256d8b5b01926a5fbd997d (diff)
downloadffmpeg-238247b622912019243b7abcd016cc4a0f5d3b6d.tar.gz
avcodec/sgienc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/sgienc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 21026afccc..2f45eb3984 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -153,7 +153,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
/* Make an intermediate consecutive buffer. */
if (!(encode_buf = av_malloc(width)))
- return -1;
+ return AVERROR(ENOMEM);
for (z = 0; z < depth; z++) {
in_buf = p->data[0] + p->linesize[0] * (height - 1) + z;