diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-06 11:49:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-06 11:49:17 +0100 |
commit | f2d8e3c031247a651f6f0a527bcf669b4553d414 (patch) | |
tree | 7f770b09de90216bdde35cc4007fa8703194de13 | |
parent | 0f057ea3c5484d7df8a951c1fdeb8b873ae382e2 (diff) | |
download | ffmpeg-f2d8e3c031247a651f6f0a527bcf669b4553d414.tar.gz |
avcodec/ljpegenc: fix mem allocation failure return code encode_picture_lossless()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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); } } |