summaryrefslogtreecommitdiff
path: root/libavcodec/vorbisenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:22 +0100
commit2ed79755d7b990c21fc509cd5ddc1cf9e47814e9 (patch)
tree9f3fc5cb544f4bf2df318469ba1880d042c9e380 /libavcodec/vorbisenc.c
parent079d7246fbea9d81d6e4f338e7add732d509348f (diff)
vorbisenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vorbisenc.c')
-rw-r--r--libavcodec/vorbisenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c
index afc8f9d17d..bb6ad2c9e4 100644
--- a/libavcodec/vorbisenc.c
+++ b/libavcodec/vorbisenc.c
@@ -1030,8 +1030,7 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, AVPacket *avpkt,
return 0;
samples = 1 << (venc->log2_blocksize[0] - 1);
- if ((ret = ff_alloc_packet(avpkt, 8192))) {
- av_log(avccontext, AV_LOG_ERROR, "Error getting output packet\n");
+ if ((ret = ff_alloc_packet2(avccontext, avpkt, 8192))) {
return ret;
}