mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 03:12:08 +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;
|
||||
}
|
||||
|
||||
if ((ret = ff_alloc_packet(avpkt, NELLY_BLOCK_LEN))) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
|
||||
if ((ret = ff_alloc_packet2(avctx, avpkt, NELLY_BLOCK_LEN))) {
|
||||
return ret;
|
||||
}
|
||||
encode_block(s, avpkt->data, avpkt->size);
|
||||
|
Loading…
Reference in New Issue
Block a user