mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-04-30 13:35:00 +00:00
cea608tojson: Clip column number if it exceeds allowed value
... as described in the spec
This commit is contained in:
parent
d6ab55c263
commit
6772e49712
1 changed files with 2 additions and 0 deletions
|
@ -746,6 +746,8 @@ impl State {
|
|||
| ffi::eia608_control_t_eia608_tab_offset_2
|
||||
| ffi::eia608_control_t_eia608_tab_offset_3 => {
|
||||
self.cursor.col += (cmd - ffi::eia608_control_t_eia608_tab_offset_0) as usize;
|
||||
// C.13 Right Margin Limitation
|
||||
self.cursor.col = std::cmp::min(self.cursor.col, 31);
|
||||
}
|
||||
// TODO
|
||||
ffi::eia608_control_t_eia608_control_alarm_off
|
||||
|
|
Loading…
Reference in a new issue