[FFmpeg-cvslog] alacenc: switch to ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:24 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:21:13 2012 +0100| [a18cf3635c03e579419bd1410ae54044e27b8b2d] | committer: Michael Niedermayer
alacenc: 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=a18cf3635c03e579419bd1410ae54044e27b8b2d
---
libavcodec/alacenc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index cc95604..a545b09 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;
}
More information about the ffmpeg-cvslog
mailing list