diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:21:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:18 +0100 |
commit | a18cf3635c03e579419bd1410ae54044e27b8b2d (patch) | |
tree | 7cebab73f9cb2f843b455ee8f262bdeecd941a60 | |
parent | f360e7b47c832016dd8edb8170ffbee082d53c20 (diff) | |
download | ffmpeg-a18cf3635c03e579419bd1410ae54044e27b8b2d.tar.gz |
alacenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/alacenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index cc9560462b..a545b095e4 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -552,8 +552,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, else max_frame_size = s->max_coded_frame_size; - if ((ret = ff_alloc_packet(avpkt, 2 * max_frame_size))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, 2 * max_frame_size))) { return ret; } |