Re: [FFmpeg-devel] [PATCH 1/2] lavc/libkvazaar: switch to ff_alloc_packet2

2017-11-09 Thread Michael Niedermayer
On Thu, Nov 09, 2017 at 10:27:50AM +0200, Arttu Ylä-Outinen wrote:
> LGTM

will apply

thx

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH 1/2] lavc/libkvazaar: switch to ff_alloc_packet2

2017-11-09 Thread Arttu Ylä-Outinen

LGTM
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH 1/2] lavc/libkvazaar: switch to ff_alloc_packet2

2017-11-08 Thread Jun Zhao

From 190d3cf31345e9a94169278ffe0c195868a6d400 Mon Sep 17 00:00:00 2001
From: Jun Zhao 
Date: Wed, 8 Nov 2017 21:02:23 +0800
Subject: [PATCH 1/2] 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 
---
 libavcodec/libkvazaar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.14.1

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel