gst/asfdemux/gstasfdemux.c: Fix wrong order of reading of optional bytes (#165290).

Original commit message from CVS:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_data):
Fix wrong order of reading of optional bytes (#165290).
This commit is contained in:
Ronald S. Bultje 2005-02-08 13:38:11 +00:00
parent 7b5fe9738f
commit 8ca520d43a
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-02-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_data):
Fix wrong order of reading of optional bytes (#165290).
2005-02-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2005-02-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event): * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event):

View file

@ -1042,13 +1042,13 @@ gst_asf_demux_handle_data (GstASFDemux * asf_demux)
flags = packet_properties_object.flags; flags = packet_properties_object.flags;
property = packet_properties_object.property; property = packet_properties_object.property;
packet_length = _read_var_length (asf_demux, (flags >> 5) & 0x03, &rsize);
if (packet_length == 0)
packet_length = asf_demux->packet_size;
packet_info.multiple = flags & 0x01; packet_info.multiple = flags & 0x01;
sequence = _read_var_length (asf_demux, (flags >> 1) & 0x03, &rsize); sequence = _read_var_length (asf_demux, (flags >> 1) & 0x03, &rsize);
packet_info.padsize = packet_info.padsize =
_read_var_length (asf_demux, (flags >> 3) & 0x03, &rsize); _read_var_length (asf_demux, (flags >> 3) & 0x03, &rsize);
packet_length = _read_var_length (asf_demux, (flags >> 5) & 0x03, &rsize);
if (packet_length == 0)
packet_length = asf_demux->packet_size;
GST_DEBUG ("Multiple = %u, Sequence = %u, Padsize = %u, Packet length = %u", GST_DEBUG ("Multiple = %u, Sequence = %u, Padsize = %u, Packet length = %u",
packet_info.multiple, sequence, packet_info.padsize, packet_length); packet_info.multiple, sequence, packet_info.padsize, packet_length);