aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:21 +0100
commit3998b13a348589c3cd1a68138ebd48b7c2f6994d (patch)
treec3602454a12c0dee4b6d20657f1458af5e017767
parenta895669f53849dc17906ef0389ea01ee524c4ece (diff)
downloadffmpeg-3998b13a348589c3cd1a68138ebd48b7c2f6994d.tar.gz
mpegaudioenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpegaudioenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c
index 1f9516d2e9..5a4dc2af37 100644
--- a/libavcodec/mpegaudioenc.c
+++ b/libavcodec/mpegaudioenc.c
@@ -751,8 +751,7 @@ static int MPA_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
compute_bit_allocation(s, smr, bit_alloc, &padding);
- if ((ret = ff_alloc_packet(avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
return ret;
}