[FFmpeg-cvslog] mpegaudioenc: switch to ff_alloc_packet2().
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:32 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:48 2012 +0100| [3998b13a348589c3cd1a68138ebd48b7c2f6994d] | committer: Michael Niedermayer
mpegaudioenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3998b13a348589c3cd1a68138ebd48b7c2f6994d
---
libavcodec/mpegaudioenc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c
index 1f9516d..5a4dc2a 100644
--- a/libavcodec/mpegaudioenc.c
+++ b/libavcodec/mpegaudioenc.c
@@ -751,8 +751,7 @@ static int MPA_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
compute_bit_allocation(s, smr, bit_alloc, &padding);
- if ((ret = ff_alloc_packet(avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, MPA_MAX_CODED_FRAME_SIZE))) {
return ret;
}
More information about the ffmpeg-cvslog
mailing list