Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
spr0cketeer
Icecast-Server
Commits
e4258bfa
Commit
e4258bfa
authored
Nov 20, 2015
by
Joseph Wallace
Browse files
Don't wait for video keyframes on audio-only streams.
parent
9cf4ed56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/format_ebml.c
View file @
e4258bfa
...
...
@@ -481,8 +481,13 @@ static int ebml_read(ebml_t *ebml, char *buffer, int len, ebml_chunk_type *chunk
if
(
ebml
->
cluster_start
==
0
)
{
/* new cluster is starting now */
if
(
ebml
->
cluster_starts_with_keyframe
==
EBML_KEYFRAME_STARTS_CLUSTER
)
{
/* Successfully found a keyframe in this cluster's video track */
if
(
ebml
->
cluster_starts_with_keyframe
!=
EBML_KEYFRAME_DOES_NOT_START_CLUSTER
)
{
/* If we positively identified the first video frame as a non-keyframe,
* don't use this cluster as a sync point. Since some files lack
* video tracks completely, or we may have failed to probe
* the first video frame, it's better to be pass through
* ambiguous cases to avoid blocking the stream forever.
*/
*
chunk_type
=
EBML_CHUNK_CLUSTER_START
;
}
...
...
Write
Preview
Supports
Markdown
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