[FFmpeg-cvslog] pcm: switch to ff_alloc_packet2().
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:33 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:48 2012 +0100| [11e8f3e7a20db6f584f523a85e730ca60550ba3d] | committer: Michael Niedermayer
pcm: 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=11e8f3e7a20db6f584f523a85e730ca60550ba3d
---
libavcodec/pcm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index f082dcb..72a4e2a 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -96,8 +96,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
n = frame->nb_samples * avctx->channels;
samples = (const short *)frame->data[0];
- if ((ret = ff_alloc_packet(avpkt, n * sample_size))) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avctx, avpkt, n * sample_size))) {
return ret;
}
dst = avpkt->data;
More information about the ffmpeg-cvslog
mailing list