From: Ronald S. Bultje Date: Sat, 21 Mar 2009 21:02:08 +0000 (+0000) Subject: Remove slash-skipping code because the function called right after that X-Git-Tag: v0.6~5155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc9aced32f554e51e3bc5f46a5aa36a9927957a2;p=platform%2Fupstream%2Flibav.git Remove slash-skipping code because the function called right after that statement (get_word_sep()) already does that all by itself. See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist. Originally committed as revision 18128 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index cd5c3d859..c9e60dd59 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -584,14 +584,11 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p) get_word_sep(transport_protocol, sizeof(transport_protocol), "/", &p); - if (*p == '/') - p++; if (!strcasecmp (transport_protocol, "rtp")) { get_word_sep(profile, sizeof(profile), "/;,", &p); lower_transport[0] = '\0'; /* rtp/avp/ */ if (*p == '/') { - p++; get_word_sep(lower_transport, sizeof(lower_transport), ";,", &p); }