diff options
Diffstat (limited to 'libavcodec/zerocodec.c')
-rw-r--r-- | libavcodec/zerocodec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/zerocodec.c b/libavcodec/zerocodec.c index eeba2dedf7..9f6c37c02a 100644 --- a/libavcodec/zerocodec.c +++ b/libavcodec/zerocodec.c @@ -59,10 +59,8 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, return AVERROR_INVALIDDATA; } - if (ff_get_buffer(avctx, pic, AV_GET_BUFFER_FLAG_REF) < 0) { - av_log(avctx, AV_LOG_ERROR, "Could not allocate buffer.\n"); - return AVERROR(ENOMEM); - } + if ((ret = ff_get_buffer(avctx, pic, AV_GET_BUFFER_FLAG_REF)) < 0) + return ret; zstream->next_in = avpkt->data; zstream->avail_in = avpkt->size; |