Browse Source

libvorbis: switch to ff_alloc_packet2().

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

+ 1
- 2
libavcodec/libvorbis.c View File

@@ -353,8 +353,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,

av_fifo_generic_read(s->pkt_fifo, &op, sizeof(ogg_packet), NULL);

if ((ret = ff_alloc_packet(avpkt, op.bytes))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
if ((ret = ff_alloc_packet2(avctx, avpkt, op.bytes))) {
return ret;
}
av_fifo_generic_read(s->pkt_fifo, avpkt->data, op.bytes, NULL);


Loading…
Cancel
Save