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:
Benjamin Gaignard 2013-12-13 11:49:52 +01:00 committed by Tim-Philipp Müller
parent fefd021ee2
commit 6cf1f629a3

View file

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