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
@ -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…
x
Reference in New Issue
Block a user