diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:20 +0100 |
commit | c7ef5a4aa95cb3b13854d212d2e23a423b05c035 (patch) | |
tree | 59c9a803ea4aaa4f67af5245b8e462b4cc9e1607 /libavcodec/libmp3lame.c | |
parent | 67b8c88cfe87328d72676291e2fd2234ceaa249c (diff) | |
download | ffmpeg-c7ef5a4aa95cb3b13854d212d2e23a423b05c035.tar.gz |
libmp3lame: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r-- | libavcodec/libmp3lame.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c index 686dfc2bb3..b8c32bc477 100644 --- a/libavcodec/libmp3lame.c +++ b/libavcodec/libmp3lame.c @@ -255,8 +255,7 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, av_dlog(avctx, "in:%d packet-len:%d index:%d\n", avctx->frame_size, len, s->buffer_index); if (len <= s->buffer_index) { - if ((ret = ff_alloc_packet(avpkt, len))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, len))) { return ret; } memcpy(avpkt->data, s->buffer, len); |