diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-06 16:36:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-11-01 20:14:22 +0100 |
commit | 92abc7266b5a7139d85699cce2b2c94c1e4ed2ed (patch) | |
tree | 6eb74b2cc9ca0378087e126095f4756f45fcafc8 /libavcodec/v4l2_fmt.c | |
parent | 8c0350f57ef4c5f7ff4ec56865029e30cbf2877e (diff) | |
download | ffmpeg-92abc7266b5a7139d85699cce2b2c94c1e4ed2ed.tar.gz |
avcodec/vaapi_encode: Use RefStruct pool API, stop abusing AVBuffer API
Up until now, the VAAPI encoder uses fake data with the
AVBuffer-API: The data pointer does not point to real memory,
but is instead just a VABufferID converted to a pointer.
This has probably been copied from the VAAPI-hwcontext-API
(which presumably does it to avoid allocations).
This commit changes this without causing additional allocations
by switching to the RefStruct-pool API. This also fixes an
unchecked av_buffer_ref().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/v4l2_fmt.c')
0 files changed, 0 insertions, 0 deletions