summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_parser.c')
-rw-r--r--apps/plugins/mpegplayer/mpeg_parser.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c
index b683efe..572bd1b 100644
--- a/apps/plugins/mpegplayer/mpeg_parser.c
+++ b/apps/plugins/mpegplayer/mpeg_parser.c
@@ -289,8 +289,11 @@ static void init_times(struct stream *str)
str->start_pts = INVALID_TIMESTAMP;
- /* Probe many for video because of B-frames */
- for (i = STREAM_IS_VIDEO(str->id) ? 5 : 1; i > 0;)
+ /* Probe for many for the start because a stamp or two could be anomalous.
+ * Video also can also have things out of order. How many? There isn't any
+ * "right" value but just a few seems suffient to filter some bad cases.
+ * Too many and file loading could take too long. */
+ for (i = 5; i > 0;)
{
switch (parser_get_next_data(&tmp_str, STREAM_PM_RANDOM_ACCESS))
{