avcodec/vaapi_encode: use AVCodecContext.get_encode_buffer()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -650,7 +650,7 @@ static int vaapi_encode_output(AVCodecContext *avctx,
|
||||
for (buf = buf_list; buf; buf = buf->next)
|
||||
total_size += buf->size;
|
||||
|
||||
err = av_new_packet(pkt, total_size);
|
||||
err = ff_get_encode_buffer(avctx, pkt, total_size, 0);
|
||||
ptr = pkt->data;
|
||||
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user