gst/matroska/matroska-demux.c: Really detect ac-3 audio.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 1 May 2004 02:46:38 +0000 (02:46 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 1 May 2004 02:46:38 +0000 (02:46 +0000)
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_audio_caps):
Really detect ac-3 audio.
* gst/typefind/gsttypefindfunctions.c: (matroska_type_find):
really detect matroska files (off-by-1).

ChangeLog
gst/typefind/gsttypefindfunctions.c

index 30b42dc..619e4bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-04-30  Ronald Bultje  <rbultje@ronald.bitfreak.net>
+
+       * gst/matroska/matroska-demux.c: (gst_matroska_demux_audio_caps):
+         Really detect ac-3 audio.
+       * gst/typefind/gsttypefindfunctions.c: (matroska_type_find):
+         really detect matroska files (off-by-1).
+
 2004-04-30  David Schleef  <ds@schleef.org>
 
        * gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_header),
index 447f227..c204514 100644 (file)
@@ -1047,7 +1047,7 @@ matroska_type_find (GstTypeFind * tf, gpointer ununsed)
    * we don't parse the whole header but simply check for the
    * availability of that array of characters inside the header.
    * Not fully fool-proof, but good enough. */
-  for (n = 4 + size; n < 4 + size + total - sizeof (probe_data); n++)
+  for (n = 4 + size; n <= 4 + size + total - sizeof (probe_data); n++)
     if (!memcmp (&data[n], probe_data, sizeof (probe_data))) {
       gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, MATROSKA_CAPS);
       break;