mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/aliaspixenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4a8ec0218e
commit
107026ea81
@ -61,7 +61,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
length = ALIAS_HEADER_SIZE + 4 * width * height; // max possible
|
||||
if ((ret = ff_alloc_packet(pkt, length)) < 0) {
|
||||
if ((ret = ff_alloc_packet2(avctx, pkt, length, ALIAS_HEADER_SIZE + height*2)) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", length);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user