diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:21 +0100 |
commit | 11e8f3e7a20db6f584f523a85e730ca60550ba3d (patch) | |
tree | 705e873ba90a7beeb26f7ec858b996f0819aafe8 | |
parent | 29971e4f9c588d068312ea8dc607be9a817669c9 (diff) | |
download | ffmpeg-11e8f3e7a20db6f584f523a85e730ca60550ba3d.tar.gz |
pcm: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index f082dcbdf1..72a4e2aebb 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; |