Revision f68c8a50 libavformat/rtmpproto.c

View differences:

libavformat/rtmpproto.c
611 611
                fname = path + 1;
612 612
                app[0] = '\0';
613 613
            } else {
614
                char *c = strchr(p + 1, ':');
614 615
                fname = strchr(p + 1, '/');
615
                if (!fname) {
616
                if (!fname || c < fname) {
616 617
                    fname = p + 1;
617 618
                    av_strlcpy(app, path + 1, p - path);
618 619
                } else {
......
621 622
                }
622 623
            }
623 624
        }
624
        if (!strcmp(fname + strlen(fname) - 4, ".f4v") ||
625
            !strcmp(fname + strlen(fname) - 4, ".mp4")) {
625
        if (!strchr(fname, ':') &&
626
            (!strcmp(fname + strlen(fname) - 4, ".f4v") ||
627
             !strcmp(fname + strlen(fname) - 4, ".mp4"))) {
626 628
            memcpy(rt->playpath, "mp4:", 5);
627 629
        } else {
628 630
            rt->playpath[0] = 0;

Also available in: Unified diff