diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:24:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:19 +0100 |
commit | c5ea6a5c75ab10fe43b23930ef910b1d66ad09f0 (patch) | |
tree | d82f9a8f272e07464efe7f6c7b396afac092348f /libavcodec/g726.c | |
parent | 2e4413ce2c33714b549f3dc114217ff9bae65de6 (diff) | |
download | ffmpeg-c5ea6a5c75ab10fe43b23930ef910b1d66ad09f0.tar.gz |
g726enc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r-- | libavcodec/g726.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 4489411e2d..6841b11c9e 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -361,8 +361,7 @@ static int g726_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, int i, ret, out_size; out_size = (frame->nb_samples * c->code_size + 7) / 8; - 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; } init_put_bits(&pb, avpkt->data, avpkt->size); |