diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-09 14:05:13 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-09 14:07:54 +0000 |
commit | 238247b622912019243b7abcd016cc4a0f5d3b6d (patch) | |
tree | d0bdf29cadf0aa3aa949acf8474b6dd08425d77d | |
parent | 5763f675024765df8f256d8b5b01926a5fbd997d (diff) | |
download | ffmpeg-238247b622912019243b7abcd016cc4a0f5d3b6d.tar.gz |
avcodec/sgienc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/sgienc.c | 2 |
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; |