diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 18:00:47 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 22:03:20 +0400 |
commit | 67b8c88cfe87328d72676291e2fd2234ceaa249c (patch) | |
tree | fe9272e25458f6c3d6607e0cbaef93b46f3b7f79 /libavcodec/libgsm.c | |
parent | 1308b2df44d33786342e06387d6462bc95e769ea (diff) |
libgsm: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libgsm.c')
-rw-r--r-- | libavcodec/libgsm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c index 8a5ad0024f..eafcbec4a8 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; } |