diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-04 16:44:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-10 18:49:35 +0200 |
commit | d576b37fa7e2d23737f04b6c1df2a132ff4b113f (patch) | |
tree | 75e95f0b334453cc4fe7cc05f83e8c08a7d4db57 /libavformat/svs.c | |
parent | 3d5a74cc3899df9d1f0b215b03bfddd1c8226f04 (diff) | |
download | ffmpeg-d576b37fa7e2d23737f04b6c1df2a132ff4b113f.tar.gz |
avutil/buffer: Never poison returned buffers
Poisoning returned buffers is based around the implicit assumption
that the contents of said buffers are transient. Yet this is not true
for the buffer pools used by the various hardware contexts which store
important state in there that needs to be preserved.
Furthermore, the current code is also based on the assumption
that the complete buffer pointed to by AVBuffer->data coincides with
AVBufferRef->data; yet an implementation might store some data of its
own before the actual user-visible data (accessible via AVBufferRef)
which would be broken by the current code.
(This is of course yet more proof that the AVBuffer API is not the right
tool for the hardware contexts.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/svs.c')
0 files changed, 0 insertions, 0 deletions