gst/matroska/matroska-demux.c: Really detect ac-3 audio.

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).
This commit is contained in:
Ronald S. Bultje 2004-05-01 02:46:38 +00:00
parent 0afd22808f
commit bd56d546af
2 changed files with 8 additions and 1 deletions

View file

@ -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),

View 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;