mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
gst/typefind/gsttypefindfunctions.c: Fix broken mp3 typefinding. Fixes #158375
Original commit message from CVS: patch by: Ronald Bultje <rbultje@ronald.bitfreak.net> * gst/typefind/gsttypefindfunctions.c: Fix broken mp3 typefinding. Fixes #158375
This commit is contained in:
parent
25922d3fb2
commit
d0be35ce38
2 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,14 @@
|
|||
2004-11-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
patch by: Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/typefind/gsttypefindfunctions.c:
|
||||
Fix broken mp3 typefinding. Fixes #158375
|
||||
|
||||
2004-11-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
patch by: Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/ogg/gstoggdemux.c:
|
||||
Fix sync on broken files. Fixes #158976
|
||||
|
||||
|
|
|
@ -369,14 +369,14 @@ static GstStaticCaps mp3_caps = GST_STATIC_CAPS ("audio/mpeg, "
|
|||
static void
|
||||
mp3_type_find (GstTypeFind * tf, gpointer unused)
|
||||
{
|
||||
guint64 length = gst_type_find_get_length (tf);
|
||||
/*guint64 length = gst_type_find_get_length (tf); */
|
||||
gint try;
|
||||
guint8 *data = NULL;
|
||||
guint size;
|
||||
guint64 skipped;
|
||||
|
||||
for (try = 0; try < 1 /* 2 */ ; try++) {
|
||||
guint64 start_off = (try == 0) ? 0 : length / 2;
|
||||
guint64 start_off = 0; /*(try == 0) ? 0 : length / 2; */
|
||||
|
||||
if (try != 0 && start_off == 0)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue