mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
mfvideosrc: Fix invalid memory access when outputting jpeg
Don't access unknown-dangerous-nonsense address Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1662>
This commit is contained in:
parent
cc7e98816f
commit
9ecdfea7da
1 changed files with 3 additions and 3 deletions
|
@ -621,10 +621,10 @@ gst_mf_source_reader_create (GstMFSourceObject * object, GstBuffer ** buffer)
|
|||
|
||||
media_buffer->Unlock ();
|
||||
|
||||
GST_BUFFER_PTS (buffer) = timestamp;
|
||||
GST_BUFFER_PTS (buf) = timestamp;
|
||||
/* Set DTS since this is compressed format */
|
||||
GST_BUFFER_DTS (buffer) = timestamp;
|
||||
GST_BUFFER_DURATION (buffer) = duration;
|
||||
GST_BUFFER_DTS (buf) = timestamp;
|
||||
GST_BUFFER_DURATION (buf) = duration;
|
||||
|
||||
*buffer = buf;
|
||||
|
||||
|
|
Loading…
Reference in a new issue