mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/sgienc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5763f67502
commit
238247b622
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user