diff options
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r-- | libavcodec/ljpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 9316b11cef..7e536a88df 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -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); } } |