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
..
2024-04-07 21:50:17 +00:00
2024-04-04 19:39:09 +00:00
2024-03-05 12:58:57 +00:00
2024-03-05 12:58:57 +00:00
2024-03-05 12:58:57 +00:00
2024-03-23 13:08:15 +00:00
2024-03-05 12:58:57 +00:00
2024-03-23 13:08:15 +00:00
2024-03-23 13:08:15 +00:00