mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
Revert "typefind: Reduce number of calls to gst_type_find_peek."
This reverts commit c661bfaa99
.
This breaks AC-3 typefinding for all cases where the first frame
is at an offset > 0.
This commit is contained in:
parent
c783ec3c4d
commit
ca7ba91e5b
1 changed files with 2 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ static const struct ac3_frmsize ac3_frmsizecod_tbl[] = {
|
||||||
static void
|
static void
|
||||||
ac3_type_find (GstTypeFind * tf, gpointer unused)
|
ac3_type_find (GstTypeFind * tf, gpointer unused)
|
||||||
{
|
{
|
||||||
guint8 *data = gst_type_find_peek (tf, 0, 1024);
|
guint8 *data = gst_type_find_peek (tf, 0, 5);
|
||||||
gint offset = 0;
|
gint offset = 0;
|
||||||
|
|
||||||
/* Search for an ac3 frame; not neccesarily right at the start, but give it
|
/* Search for an ac3 frame; not neccesarily right at the start, but give it
|
||||||
|
@ -1182,6 +1182,7 @@ ac3_type_find (GstTypeFind * tf, gpointer unused)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
offset++;
|
offset++;
|
||||||
|
data = gst_type_find_peek (tf, offset, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue