Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
bb786dfb
Commit
bb786dfb
authored
Dec 29, 2010
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typefinding: assume EBML files without doctype are matroska
https://bugzilla.gnome.org/show_bug.cgi?id=638019
parent
b1696cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gst/typefind/gsttypefindfunctions.c
gst/typefind/gsttypefindfunctions.c
+6
-0
No files found.
gst/typefind/gsttypefindfunctions.c
View file @
bb786dfb
...
...
@@ -3184,6 +3184,10 @@ ebml_check_header (GstTypeFind * tf, const gchar * doctype, int doctype_len)
if
(
!
data
)
return
FALSE
;
/* only check doctype if asked to do so */
if
(
doctype
==
NULL
||
doctype_len
==
0
)
return
TRUE
;
/* the header must contain the doctype. For now, we don't parse the
* whole header but simply check for the availability of that array
* of characters inside the header. Not fully fool-proof, but good
...
...
@@ -3204,6 +3208,8 @@ matroska_type_find (GstTypeFind * tf, gpointer ununsed)
{
if
(
ebml_check_header
(
tf
,
"matroska"
,
8
))
gst_type_find_suggest
(
tf
,
GST_TYPE_FIND_MAXIMUM
,
MATROSKA_CAPS
);
else
if
(
ebml_check_header
(
tf
,
NULL
,
0
))
gst_type_find_suggest
(
tf
,
GST_TYPE_FIND_LIKELY
,
MATROSKA_CAPS
);
}
/*** video/webm ***/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment