From 6eaa31cb9bde85099cc5df6aa93cc3da28df4b02 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 04:26:41 +0100 Subject: [PATCH] roqaudioenc: switch to ff_alloc_packet2() Signed-off-by: Michael Niedermayer --- libavcodec/roqaudioenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index 5db84c3778..6bc072442c 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -171,8 +171,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, else data_size = avctx->channels * avctx->frame_size; - if ((ret = ff_alloc_packet(avpkt, ROQ_HEADER_SIZE + data_size))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, ROQ_HEADER_SIZE + data_size))) { return ret; } out = avpkt->data;