Browse Source

vorbisenc: switch to ff_alloc_packet2().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
2ed79755d7
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/vorbisenc.c

+ 1
- 2
libavcodec/vorbisenc.c View File

@@ -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;
}



Loading…
Cancel
Save