We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ade3f commit e498365Copy full SHA for e498365
librtsp/source/sdp.c
@@ -756,7 +756,7 @@ static int sdp_parse_repeat(struct sdp_t* sdp)
756
r->duration = sdp->raw + sdp->offset;
757
n[1] = sdp_token_word(sdp, " \t\r\n");
758
759
- while(strchr(" \t", sdp->raw[sdp->offset]))
+ while(sdp->raw[sdp->offset] && strchr(" \t", sdp->raw[sdp->offset]))
760
{
761
if(n[2] > 0 && offset)
762
@@ -829,11 +829,11 @@ static int sdp_parse_timezone(struct sdp_t* sdp)
829
t->z.capacity += 8;
830
}
831
832
- z = &t->z.ptr[t->r.count - N_TIMEZONE];
+ z = &t->z.ptr[t->z.count - N_TIMEZONE];
833
834
else
835
836
- z = &t->z.timezones[t->r.count];
+ z = &t->z.timezones[t->z.count];
837
838
839
z->time = time;
0 commit comments