diff options
author | Jun Zhao <jun.zhao@intel.com> | 2017-11-08 16:04:51 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-10 02:53:11 +0300 |
commit | dd435c957aa48349f25c58bac88010d5af696227 (patch) | |
tree | 11803f82b20712a14db2560cbe07b6b70eec1891 /libavcodec/libx265.c | |
parent | 2c6b0315d9cda3ff549c66eb8603afd8ba5e4574 (diff) |
lavc/libx265: switch to ff_alloc_packet2
ff_alloc_packet have been deprecated, switch to use
ff_alloc_packet2.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r-- | libavcodec/libx265.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 784b51c52d..4456e300f2 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -294,7 +294,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, for (i = 0; i < nnal; i++) payload += nal[i].sizeBytes; - ret = ff_alloc_packet(pkt, payload); + ret = ff_alloc_packet2(avctx, pkt, payload, payload); if (ret < 0) { av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); return ret; |