Browse Source

libfdk-aac: Port to ff_alloc_packet2

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n1.0
Derek Buitenhuis 13 years ago
parent
commit
7ff318e2dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libfdk-aacenc.c

+ 1
- 1
libavcodec/libfdk-aacenc.c View File

@@ -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;
}


Loading…
Cancel
Save