mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/ljpegenc: fix mem allocation failure return code encode_picture_lossless()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0f057ea3c5
commit
f2d8e3c031
@ -63,7 +63,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
|
||||
s->rd_scratchpad = av_mallocz(alloc_size * 4 * 16 * 2);
|
||||
if (!s->rd_scratchpad) {
|
||||
av_log(avctx, AV_LOG_ERROR, "failed to allocate context scratch buffers.\n");
|
||||
return ret;
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user