aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:24:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:19 +0100
commit2e4413ce2c33714b549f3dc114217ff9bae65de6 (patch)
tree1c6776fb29091ac070bdbe3b001f308c4f65b7c3
parent3f35b66512e4fa740c0cd0cb3a78ae34f5a363a6 (diff)
downloadffmpeg-2e4413ce2c33714b549f3dc114217ff9bae65de6.tar.gz
g722enc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/g722enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index 424dd237dc..0aa17fb579 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;
}