gst/asfdemux/gstasfdemux.c: Read packet size, sequence and padsize in right order again

Original commit message from CVS:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_data):
Read packet size, sequence and padsize in right order again
(fixes #332796; patch by: Fabrizio Gennari).
This commit is contained in:
Fabrizio 2006-03-01 09:55:49 +00:00 committed by Tim-Philipp Müller
parent 66ea4f8f5d
commit 3de20e5147
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2006-03-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_data):
Read packet size, sequence and padsize in right order again
(fixes #332796; patch by: Fabrizio Gennari).
2006-02-28 Edward Hervey <edward@fluendo.com>
* gst/iec958/ac3iec.c:

View file

@ -2203,14 +2203,14 @@ gst_asf_demux_handle_data (GstASFDemux * demux, guint8 ** p_data,
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;