vorbisenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
079d7246fb
commit
2ed79755d7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user