mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/vaapi_encode: use AVCodecContext.get_encode_buffer()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
238e08b12e
commit
a1cd4191e0
7 changed files with 12 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue