Commit 9407cf13 authored by Michael Niedermayer's avatar Michael Niedermayer

libvorbis: switch to ff_alloc_packet2().

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d9375b0e
......@@ -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);
......
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