[FFmpeg-cvslog] aacenc: switch to ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:23 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:19:52 2012 +0100| [7fe8250e9a4292efc1713aa7d66d534d8cf524bd] | committer: Michael Niedermayer
aacenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7fe8250e9a4292efc1713aa7d66d534d8cf524bd
---
libavcodec/aacenc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 0ad0730..09f92be 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);
More information about the ffmpeg-cvslog
mailing list