On Mon, 14 May 2012, Luca Barbato wrote:
The application component can have a subcomponent to specify the application instance even if it doesn't have a ":" in the playpath. --- libavformat/rtmpproto.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 427655c..f2b417c 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -902,7 +902,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) } else { char *c = strchr(p + 1, ':'); fname = strchr(p + 1, '/'); - if (!fname || c < fname) { + if (!fname || (c && c < fname)) { fname = p + 1; av_strlcpy(rt->app, path + 1, p - path); } else { -- 1.7.8.rc1
Ok. If you have time, please try to add comments in this block of code, to make it understandable what the actual intent of the code is.
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
