[FFmpeg-cvslog] g722enc: switch to ff_alloc_packet2()

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


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:24:04 2012 +0100| [2e4413ce2c33714b549f3dc114217ff9bae65de6] | committer: Michael Niedermayer

g722enc: 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=2e4413ce2c33714b549f3dc114217ff9bae65de6
---

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

diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index 424dd23..0aa17fb 100644
--- a/libavcodec/g722enc.c
+++ b/libavcodec/g722enc.c
@@ -366,8 +366,7 @@ static int g722_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     int nb_samples, out_size, ret;
 
     out_size = (frame->nb_samples + 1) / 2;
-    if ((ret = ff_alloc_packet(avpkt, out_size))) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+    if ((ret = ff_alloc_packet2(avctx, avpkt, out_size))) {
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list