[FFmpeg-cvslog] lavc/libkvazaar: switch to ff_alloc_packet2.

Jun Zhao git at videolan.org
Fri Nov 10 01:53:42 EET 2017


ffmpeg | branch: master | Jun Zhao <jun.zhao at intel.com> | Wed Nov  8 21:02:23 2017 +0800| [2c6b0315d9cda3ff549c66eb8603afd8ba5e4574] | committer: 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: Jun Zhao <jun.zhao at intel.com>
Reviewed-by: Arttu Ylä-Outinen <arttu.yla-outinen at tut.fi>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c6b0315d9cda3ff549c66eb8603afd8ba5e4574
---

 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;



More information about the ffmpeg-cvslog mailing list