From 37e434e492907468063e96b91b74e322fe15d510 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 15:00:49 +0100 Subject: proresenc_kostya: switch to ff_alloc_packet2(). Signed-off-by: Michael Niedermayer --- libavcodec/proresenc_kostya.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/proresenc_kostya.c') diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index d46401b754..4bbfe274a5 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -700,8 +700,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, pkt_size = ctx->frame_size + FF_MIN_BUFFER_SIZE; - if ((ret = ff_alloc_packet(pkt, pkt_size)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, pkt_size)) < 0) { return ret; } -- cgit v1.2.3