From 93aafe2a3955a485f350d632be30b26da816faa8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 15:00:48 +0100 Subject: [PATCH] nellymoserenc: switch to ff_alloc_packet2(). Signed-off-by: Michael Niedermayer --- libavcodec/nellymoserenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 8c0038a8f7..9587fe3a2b 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -401,8 +401,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt, s->last_frame = 1; } - if ((ret = ff_alloc_packet(avpkt, NELLY_BLOCK_LEN))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, NELLY_BLOCK_LEN))) { return ret; } encode_block(s, avpkt->data, avpkt->size); -- 2.11.0