dvdspu: Fix PGS window parsing
authorJan Schmidt <thaytan@noraisin.net>
Mon, 2 Nov 2009 01:48:18 +0000 (02:48 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 2 Nov 2009 01:48:18 +0000 (02:48 +0100)
Fix a problem introduced in the last PGS parsing patch by skipping
the window count byte after reading it.

gst/dvdspu/gstspu-pgs.c

index 365e0c81a69ecd0ddb65da24154d609e34209b41..b860b290b94332021efbe7651f35a1b3585233d9 100644 (file)
@@ -529,6 +529,7 @@ parse_set_window (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
   dump_bytes (payload, len);
 
   win_count = payload[0];
+  payload++;
 
   for (i = 0; i < win_count; i++) {
     if (payload + 9 > end)