mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 11:22:14 +00:00
nellymoserenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6e3aee03b8
commit
93aafe2a39
@ -401,8 +401,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
s->last_frame = 1;
|
s->last_frame = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = ff_alloc_packet(avpkt, NELLY_BLOCK_LEN))) {
|
if ((ret = ff_alloc_packet2(avctx, avpkt, NELLY_BLOCK_LEN))) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
encode_block(s, avpkt->data, avpkt->size);
|
encode_block(s, avpkt->data, avpkt->size);
|
||||||
|
Loading…
Reference in New Issue
Block a user