Index: gst/asfdemux/gstasfdemux.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-ugly/gst/asfdemux/gstasfdemux.c,v
retrieving revision 1.95
diff -u -r1.95 gstasfdemux.c
--- gst/asfdemux/gstasfdemux.c	17 Feb 2006 17:58:44 -0000	1.95
+++ gst/asfdemux/gstasfdemux.c	28 Feb 2006 18:50:06 -0000
@@ -2203,14 +2203,14 @@
 
   packet_info.multiple = ((flags & 0x01) == 0x01);
 
+  packet_length =
+      gst_asf_demux_get_var_length ((flags >> 5) & 0x03, p_data, p_size);
+
   sequence = gst_asf_demux_get_var_length ((flags >> 1) & 0x03, p_data, p_size);
 
   packet_info.padsize =
       gst_asf_demux_get_var_length ((flags >> 3) & 0x03, p_data, p_size);
 
-  packet_length =
-      gst_asf_demux_get_var_length ((flags >> 5) & 0x03, p_data, p_size);
-
   if (packet_length == 0)
     packet_length = demux->packet_size;
 
