diff stream/realrtsp/real.c @ 29584:dc57d7bd98e1

Fix possible crashes with invalid SDPs that result in stream descriptions not being initialized.
author reimar
date Wed, 02 Sep 2009 10:55:36 +0000
parents c990a2cbfa8d
children 8fa2f43cb760
line wrap: on
line diff
--- a/stream/realrtsp/real.c	Wed Sep 02 10:44:26 2009 +0000
+++ b/stream/realrtsp/real.c	Wed Sep 02 10:55:36 2009 +0000
@@ -235,6 +235,8 @@
     char b[64];
     int rulematches[MAX_RULEMATCHES];
 
+    if (!desc->stream[i])
+      continue;
 #ifdef LOG
     printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
 #endif