You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
nellymoserenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user