diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:20 +0100 |
commit | b7b2821f844d0bdd847eb7d39f69b57e829d7a92 (patch) | |
tree | 52437c081073a4b9a2aadb9f2da658283e01121a /libavcodec/libvo-aacenc.c | |
parent | b611ffc5d0689f8108dc7f14d5b5993fd296ed4d (diff) | |
download | ffmpeg-b7b2821f844d0bdd847eb7d39f69b57e829d7a92.tar.gz |
libvo-aacenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvo-aacenc.c')
-rw-r--r-- | libavcodec/libvo-aacenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c index 46e1f0cfe6..807083332d 100644 --- a/libavcodec/libvo-aacenc.c +++ b/libavcodec/libvo-aacenc.c @@ -161,8 +161,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, return ret; } - if ((ret = ff_alloc_packet(avpkt, FFMAX(8192, 768 * avctx->channels)))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels)))) { return ret; } |