mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
a64multienc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
076310edee
commit
55cc80dc29
@ -308,8 +308,7 @@ static int a64multi_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
/* any frames to encode? */
|
/* any frames to encode? */
|
||||||
if (c->mc_lifetime) {
|
if (c->mc_lifetime) {
|
||||||
req_size = charset_size + c->mc_lifetime*(screen_size + colram_size);
|
req_size = charset_size + c->mc_lifetime*(screen_size + colram_size);
|
||||||
if ((ret = ff_alloc_packet(pkt, req_size)) < 0) {
|
if ((ret = ff_alloc_packet2(avctx, pkt, req_size)) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", req_size);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
buf = pkt->data;
|
buf = pkt->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user