diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index c171a41004..13d807b71b 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1146,7 +1146,7 @@ static const struct ac3_frmsize ac3_frmsizecod_tbl[] = { static void 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; /* 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++; + data = gst_type_find_peek (tf, offset, 5); } }