diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-03-06 10:42:10 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-03-06 10:52:28 +0000 |
commit | 037adf589a8ea5137fc7e302106e4640afcc04a0 (patch) | |
tree | 661070c06deb1b66937a9c7f2f41a15e1116c990 | |
parent | 1811f1d84079b30295725ae69aa14054dbb377ff (diff) | |
download | ffmpeg-037adf589a8ea5137fc7e302106e4640afcc04a0.tar.gz |
libilbc: use ff_alloc_packet2
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/libilbc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c index 56cb51fb44..98053484b1 100644 --- a/libavcodec/libilbc.c +++ b/libavcodec/libilbc.c @@ -182,10 +182,8 @@ static int ilbc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ILBCEncContext *s = avctx->priv_data; int ret; - if ((ret = ff_alloc_packet(avpkt, 50))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, 50)) < 0) return ret; - } WebRtcIlbcfix_EncodeImpl((WebRtc_UWord16*) avpkt->data, (const WebRtc_Word16*) frame->data[0], &s->encoder); |