mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
typefinding: don't read more data than needed in MSS typefinder
This commit is contained in:
parent
9ef16721ed
commit
1638859627
1 changed files with 2 additions and 1 deletions
|
@ -3607,8 +3607,9 @@ mss_manifest_type_find (GstTypeFind * tf, gpointer unused)
|
|||
length = 512;
|
||||
else if (length < 64)
|
||||
return;
|
||||
else /* the first few bytes should be enough */
|
||||
length = MIN (1024, length);
|
||||
|
||||
/* FIXME: we probably don't need or want the entire thing.. */
|
||||
data = gst_type_find_peek (tf, 0, length);
|
||||
|
||||
if (data == NULL)
|
||||
|
|
Loading…
Reference in a new issue