[FFmpeg-cvslog] libgsm: switch to ff_alloc_packet2().

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


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:47 2012 +0100| [67b8c88cfe87328d72676291e2fd2234ceaa249c] | committer: Michael Niedermayer

libgsm: 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=67b8c88cfe87328d72676291e2fd2234ceaa249c
---

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

diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c
index 8a5ad00..eafcbec 100644
--- a/libavcodec/libgsm.c
+++ b/libavcodec/libgsm.c
@@ -100,8 +100,7 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     gsm_signal *samples = (gsm_signal *)frame->data[0];
     struct gsm_state *state = avctx->priv_data;
 
-    if ((ret = ff_alloc_packet(avpkt, avctx->block_align))) {
-        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+    if ((ret = ff_alloc_packet2(avctx, vpkt, avctx->block_align))) {
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list