Do not include "mp4:" prefix from RTMP URL into "app" path or second time
into playpath. Patch by Lars Täuber (<$name> . <$lastname with umlaut replaced with diphtong> @ <gmx> . <net>) Originally committed as revision 19894 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Kostya Shishkov

parent
609782970c
commit
f68c8a5039
@@ -611,8 +611,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
|
|||||||
fname = path + 1;
|
fname = path + 1;
|
||||||
app[0] = '\0';
|
app[0] = '\0';
|
||||||
} else {
|
} else {
|
||||||
|
char *c = strchr(p + 1, ':');
|
||||||
fname = strchr(p + 1, '/');
|
fname = strchr(p + 1, '/');
|
||||||
if (!fname) {
|
if (!fname || c < fname) {
|
||||||
fname = p + 1;
|
fname = p + 1;
|
||||||
av_strlcpy(app, path + 1, p - path);
|
av_strlcpy(app, path + 1, p - path);
|
||||||
} else {
|
} else {
|
||||||
@@ -621,8 +622,9 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!strcmp(fname + strlen(fname) - 4, ".f4v") ||
|
if (!strchr(fname, ':') &&
|
||||||
!strcmp(fname + strlen(fname) - 4, ".mp4")) {
|
(!strcmp(fname + strlen(fname) - 4, ".f4v") ||
|
||||||
|
!strcmp(fname + strlen(fname) - 4, ".mp4"))) {
|
||||||
memcpy(rt->playpath, "mp4:", 5);
|
memcpy(rt->playpath, "mp4:", 5);
|
||||||
} else {
|
} else {
|
||||||
rt->playpath[0] = 0;
|
rt->playpath[0] = 0;
|
||||||
|
Reference in New Issue
Block a user