mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dvbsuboverlay: fix reading of display window in display definition segment
From ETSI EN 300 743 V1.3.1 (2006-11) 7.2.1 Display definition segment specifictations the parameters of display window are in this order: Xmin, Xmax, Ymin, Ymax. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Pierre-Yves Mordret <pierre-yves.mordret@st.com> https://bugzilla.gnome.org/show_bug.cgi?id=720382
This commit is contained in:
parent
fefd021ee2
commit
6cf1f629a3
1 changed files with 2 additions and 2 deletions
|
@ -1172,11 +1172,11 @@ _dvb_sub_parse_display_definition_segment (DvbSub * dvb_sub, guint8 * buf,
|
|||
if (buf_size >= 13 && dvb_sub->display_def.window_flag) {
|
||||
dvb_sub->display_def.window_x = GST_READ_UINT16_BE (buf);
|
||||
buf += 2;
|
||||
dvb_sub->display_def.window_y = GST_READ_UINT16_BE (buf);
|
||||
buf += 2;
|
||||
dvb_sub->display_def.window_width =
|
||||
GST_READ_UINT16_BE (buf) - dvb_sub->display_def.window_x + 1;
|
||||
buf += 2;
|
||||
dvb_sub->display_def.window_y = GST_READ_UINT16_BE (buf);
|
||||
buf += 2;
|
||||
dvb_sub->display_def.window_height =
|
||||
GST_READ_UINT16_BE (buf) - dvb_sub->display_def.window_y + 1;
|
||||
buf += 2;
|
||||
|
|
Loading…
Reference in a new issue