Commit 2ed79755 authored by Michael Niedermayer's avatar Michael Niedermayer

vorbisenc: switch to ff_alloc_packet2().

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 079d7246
...@@ -1030,8 +1030,7 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, AVPacket *avpkt, ...@@ -1030,8 +1030,7 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, AVPacket *avpkt,
return 0; return 0;
samples = 1 << (venc->log2_blocksize[0] - 1); samples = 1 << (venc->log2_blocksize[0] - 1);
if ((ret = ff_alloc_packet(avpkt, 8192))) { if ((ret = ff_alloc_packet2(avccontext, avpkt, 8192))) {
av_log(avccontext, AV_LOG_ERROR, "Error getting output packet\n");
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment