Commit 107026ea authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aliaspixenc: Use ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4a8ec021
...@@ -61,7 +61,7 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -61,7 +61,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
} }
length = ALIAS_HEADER_SIZE + 4 * width * height; // max possible 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); av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", length);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment