Commit 238247b6 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/sgienc: return meaningful error code

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 5763f675
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment