diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-23 14:31:15 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-23 15:27:49 +0000 |
commit | ca7ba91e5b27b147f0d465061bc819663347cc72 (patch) | |
tree | 5464342d1c2c82881524c5f9782ca785033c1511 | |
parent | c783ec3c4dd1a649ef96739fcadb8ff04289ed11 (diff) |
Revert "typefind: Reduce number of calls to gst_type_find_peek."
This reverts commit c661bfaa991c58f1fbd9fbc0dae90b8b2c27f92b.
This breaks AC-3 typefinding for all cases where the first frame
is at an offset > 0.
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index c171a410..13d807b7 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); } } |