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:
Seungha Yang 2020-10-07 17:37:25 +09:00 committed by GStreamer Merge Bot
parent cc7e98816f
commit 9ecdfea7da

View file

@ -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;