From 238247b622912019243b7abcd016cc4a0f5d3b6d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 9 Feb 2015 14:05:13 +0000 Subject: avcodec/sgienc: return meaningful error code Signed-off-by: Paul B Mahol --- libavcodec/sgienc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/sgienc.c') 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; -- cgit v1.2.3