projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9053c5
)
typefind: Reduce number of calls to gst_type_find_peek.
author
Edward Hervey
<bilboed@bilboed.com>
Mon, 9 Nov 2009 18:16:21 +0000
(19:16 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 9 Nov 2009 18:18:07 +0000
(19:18 +0100)
Shaves off a couple percents off typefinding
gst/typefind/gsttypefindfunctions.c
patch
|
blob
|
history
diff --git
a/gst/typefind/gsttypefindfunctions.c
b/gst/typefind/gsttypefindfunctions.c
index
f59bc69
..
df885b9
100644
(file)
--- 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);
}
}