diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 18:00:49 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 22:03:22 +0400 |
commit | 2ed79755d7b990c21fc509cd5ddc1cf9e47814e9 (patch) | |
tree | 9f3fc5cb544f4bf2df318469ba1880d042c9e380 | |
parent | 079d7246fbea9d81d6e4f338e7add732d509348f (diff) |
vorbisenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vorbisenc.c | 3 |
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; } |