[FFmpeg-cvslog] libfdk-aac: Port to ff_alloc_packet2

Derek Buitenhuis git at videolan.org
Sun Jul 15 03:44:59 CEST 2012


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu Jul 12 21:24:38 2012 -0400| [7ff318e2dd31e8fd10b593111ee64aea11ceb9a4] | committer: Derek Buitenhuis

libfdk-aac: Port to ff_alloc_packet2

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7ff318e2dd31e8fd10b593111ee64aea11ceb9a4
---

 libavcodec/libfdk-aacenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index 32d91e9..576d1ff 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -306,7 +306,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     }
 
     /* The maximum packet size is 6144 bits aka 768 bytes per channel. */
-    if ((ret = ff_alloc_packet(avpkt, FFMAX(8192, 768 * avctx->channels)))) {
+    if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels)))) {
         av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
         return ret;
     }



More information about the ffmpeg-cvslog mailing list