summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf_mmst_streaming.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c
index e364c8e31a..e5886b89e7 100644
--- a/libmpdemux/asf_mmst_streaming.c
+++ b/libmpdemux/asf_mmst_streaming.c
@@ -334,8 +334,12 @@ static int interp_header (uint8_t *header, int header_len)
printf ("stream object, stream id: %d\n", stream_id);
+ if (num_stream_ids < 20) {
stream_ids[num_stream_ids] = stream_id;
num_stream_ids++;
+ } else {
+ printf ("too many id, stream skipped");
+ }
} else {
printf ("unknown object\n");