mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
libvorbis: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d9375b0ec6
commit
9407cf137f
@ -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);
|
av_fifo_generic_read(s->pkt_fifo, &op, sizeof(ogg_packet), NULL);
|
||||||
|
|
||||||
if ((ret = ff_alloc_packet(avpkt, op.bytes))) {
|
if ((ret = ff_alloc_packet2(avctx, avpkt, op.bytes))) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
av_fifo_generic_read(s->pkt_fifo, avpkt->data, op.bytes, NULL);
|
av_fifo_generic_read(s->pkt_fifo, avpkt->data, op.bytes, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user