summaryrefslogtreecommitdiffstats
path: root/libavcodec/libkvazaar.c
diff options
context:
space:
mode:
authorJun Zhao <[email protected]>2017-11-08 21:02:23 +0800
committerMichael Niedermayer <[email protected]>2017-11-10 00:53:11 +0100
commit2c6b0315d9cda3ff549c66eb8603afd8ba5e4574 (patch)
treebed6e1c16d53c6d14bea15801d9f5309a23f4040 /libavcodec/libkvazaar.c
parent84556ef05963138cbc39fa1a39b790dffe15ffe8 (diff)
lavc/libkvazaar: switch to ff_alloc_packet2.
ff_alloc_packet have been deprecated, switch to use the ff_alloc_packet2. Signed-off-by: Jun Zhao <[email protected]> Reviewed-by: Arttu Ylä-Outinen <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavcodec/libkvazaar.c')
-rw-r--r--libavcodec/libkvazaar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c
index f35b0df61d..25e7b32f5f 100644
--- a/libavcodec/libkvazaar.c
+++ b/libavcodec/libkvazaar.c
@@ -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;