From c661bfaa991c58f1fbd9fbc0dae90b8b2c27f92b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 9 Nov 2009 19:16:21 +0100 Subject: [PATCH] typefind: Reduce number of calls to gst_type_find_peek. Shaves off a couple percents off typefinding --- gst/typefind/gsttypefindfunctions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index f59bc69ebd..df885b9d4f 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1143,7 +1143,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, 5); + guint8 *data = gst_type_find_peek (tf, 0, 1024); gint offset = 0; /* Search for an ac3 frame; not neccesarily right at the start, but give it @@ -1179,7 +1179,6 @@ ac3_type_find (GstTypeFind * tf, gpointer unused) } } offset++; - data = gst_type_find_peek (tf, offset, 5); } }