mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
tsmux: Fill padding packets with stuffing bytes
Instead of leaving it uncleared, emitting probably old packet data but potentially also random or sensitive application data. Also fix the mapping mode. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5490>
This commit is contained in:
parent
e2790d635c
commit
b1810d83bc
1 changed files with 2 additions and 1 deletions
|
@ -1546,7 +1546,8 @@ pad_stream (TsMux * mux, TsMuxStream * stream, gint64 cur_ts)
|
|||
goto done;
|
||||
}
|
||||
|
||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||
gst_buffer_map (buf, &map, GST_MAP_WRITE);
|
||||
memset (map.data, 0xFF, map.size);
|
||||
|
||||
if ((new_pcr =
|
||||
write_new_pcr (mux, stream, get_current_pcr (mux,
|
||||
|
|
Loading…
Reference in a new issue