[FFmpeg-cvslog] avcodec_encode_audio2: use ff_alloc_packet2()

Michael Niedermayer git at videolan.org
Thu Mar 22 19:10:44 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 16:29:23 2012 +0100| [dca0e4cd6157a3cb0e4d380d1c35e5da1c737315] | committer: Michael Niedermayer

avcodec_encode_audio2: use ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 929376e..548c2f1 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1039,7 +1039,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
                 buf_size += 2*FF_MIN_BUFFER_SIZE;
             }
         }
-        if ((ret = ff_alloc_packet(avpkt, buf_size)))
+        if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size)))
             return ret;
 
         /* Encoders using AVCodec.encode() that support



More information about the ffmpeg-cvslog mailing list