diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:19:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:18 +0100 |
commit | 7fe8250e9a4292efc1713aa7d66d534d8cf524bd (patch) | |
tree | cff45232aadc4ba35c09c208ef29c224f6928ac7 | |
parent | 00663de3b752fc3bdd47d4516ad2fcc720722782 (diff) | |
download | ffmpeg-7fe8250e9a4292efc1713aa7d66d534d8cf524bd.tar.gz |
aacenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/aacenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 0ad0730816..09f92be24e 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -574,8 +574,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, do { int frame_bits; - if ((ret = ff_alloc_packet(avpkt, 768 * s->channels))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, 768 * s->channels))) { return ret; } init_put_bits(&s->pb, avpkt->data, avpkt->size); |