From dca0e4cd6157a3cb0e4d380d1c35e5da1c737315 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 16:29:23 +0100 Subject: [PATCH] avcodec_encode_audio2: use ff_alloc_packet2() Signed-off-by: Michael Niedermayer --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 929376ecc5..548c2f1596 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1039,7 +1039,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, buf_size += 2*FF_MIN_BUFFER_SIZE; } } - if ((ret = ff_alloc_packet(avpkt, buf_size))) + if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size))) return ret; /* Encoders using AVCodec.encode() that support