diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2003-02-04 18:58:34 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2003-02-04 18:58:34 +0000 |
commit | 2fe0c7b83e38e226db7030ae31cace107e079d11 (patch) | |
tree | 3694587a313a10adb1b7e125b00a35390a3e4139 /gst/avi/gstavidemux.c | |
parent | 9314894ee3b35656c1f5c79767fca428ee36ebf7 (diff) |
Endian fixes for index parsing.
Original commit message from CVS:
Endian fixes for index parsing.
Diffstat (limited to 'gst/avi/gstavidemux.c')
-rw-r--r-- | gst/avi/gstavidemux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 5e1d38ba..75252a32 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -932,6 +932,7 @@ gst_avi_demux_parse_index (GstAviDemux *avi_demux, guint32 got_bytes; gint i; gst_riff_index_entry *entry; + guint32 id; if (!gst_bytestream_seek (avi_demux->bs, filepos + offset, GST_SEEK_METHOD_SET)) { GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: could not seek to index"); @@ -955,7 +956,9 @@ gst_avi_demux_parse_index (GstAviDemux *avi_demux, goto end; } - if (gst_riff_fourcc_to_id (GST_BUFFER_DATA (buf)) != GST_RIFF_TAG_idx1) { + id = GUINT32_FROM_LE (*(guint32 *)GST_BUFFER_DATA (buf)); + + if (id != GST_RIFF_TAG_idx1) { GST_INFO (GST_CAT_PLUGIN_INFO, "avidemux: no index found"); goto end; } |