mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avcodec_encode_audio2: use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2bd303f95c
commit
dca0e4cd61
@ -1039,7 +1039,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
|
|||||||
buf_size += 2*FF_MIN_BUFFER_SIZE;
|
buf_size += 2*FF_MIN_BUFFER_SIZE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((ret = ff_alloc_packet(avpkt, buf_size)))
|
if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size)))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Encoders using AVCodec.encode() that support
|
/* Encoders using AVCodec.encode() that support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user