comparison 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
comparison
equal deleted inserted replaced
29583:c990a2cbfa8d 29584:dc57d7bd98e1
233 int j=0; 233 int j=0;
234 int n; 234 int n;
235 char b[64]; 235 char b[64];
236 int rulematches[MAX_RULEMATCHES]; 236 int rulematches[MAX_RULEMATCHES];
237 237
238 if (!desc->stream[i])
239 continue;
238 #ifdef LOG 240 #ifdef LOG
239 printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth); 241 printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
240 #endif 242 #endif
241 n=asmrp_match(desc->stream[i]->asm_rule_book, bandwidth, rulematches); 243 n=asmrp_match(desc->stream[i]->asm_rule_book, bandwidth, rulematches);
242 for (j=0; j<n; j++) { 244 for (j=0; j<n; j++) {