aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:21:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:18 +0100
commita18cf3635c03e579419bd1410ae54044e27b8b2d (patch)
tree7cebab73f9cb2f843b455ee8f262bdeecd941a60
parentf360e7b47c832016dd8edb8170ffbee082d53c20 (diff)
downloadffmpeg-a18cf3635c03e579419bd1410ae54044e27b8b2d.tar.gz
alacenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/alacenc.c3
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;
}