Commit 2c6b0315 authored by Jun Zhao's avatar Jun Zhao Committed by Michael Niedermayer

lavc/libkvazaar: switch to ff_alloc_packet2.

ff_alloc_packet have been deprecated, switch to use the
ff_alloc_packet2.
Signed-off-by: 's avatarJun Zhao <jun.zhao@intel.com>
Reviewed-by: 's avatarArttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 84556ef0
......@@ -231,7 +231,7 @@ static int libkvazaar_encode(AVCodecContext *avctx,
kvz_data_chunk *chunk = NULL;
uint64_t written = 0;
retval = ff_alloc_packet(avpkt, len_out);
retval = ff_alloc_packet2(avctx, avpkt, len_out, len_out);
if (retval < 0) {
av_log(avctx, AV_LOG_ERROR, "Failed to allocate output packet.\n");
goto done;
......
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