Seungha Yang 700c00eda3 d3d12decoder: Fix potential use after free
A DPB buffer held by codec picture object may not be writable
at the moment, then gst_buffer_make_writable() will unref passed buffer.

Specifically, the use after free or double free can happen if:
* Crop meta of buffer copy is required because of non-zero
  top-left crop position
* zero-copy is possible with crop meta
* A picture was duplicated, interlaced h264 stream for example

Interlaced h264 stream with non-zero top-left crop position
is not very common but it's possible configuration in theory.

Thus gst_buffer_make_writable() should be called with
GstVideoCodecFrame.output_buffer directly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6706>
2024-04-22 13:28:06 +00:00
..
2023-12-29 14:39:00 +00:00
2024-03-22 23:09:12 +09:00
2024-03-22 23:09:12 +09:00
2024-03-22 23:09:12 +09:00
2024-03-22 23:09:12 +09:00
2024-03-22 23:09:12 +09:00
2024-01-25 11:45:23 +00:00
2024-01-25 11:45:23 +00:00
2024-02-10 21:23:51 +09:00
2024-02-10 21:23:51 +09:00
2024-04-01 10:37:50 +00:00