--- gst-plugins-ugly-1.5.1/gst/xingmux/gstxingmux.c~	2015-06-08 21:18:59.018828690 +0100
+++ gst-plugins-ugly-1.5.1/gst/xingmux/gstxingmux.c	2015-06-08 21:19:53.742827573 +0100
@@ -275,7 +275,8 @@ generate_xing_header (GstXingMux * xing)
     header &= 0xffff0fff;
     header |= bitrate << 12;
 
-    parse_header (header, &size, &spf, &rate);
+    if (!parse_header (header, &size, &spf, &rate))
+	return NULL;
     xing_offset = get_xing_offset (header);
   } while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xe);
 
