diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 00:38:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 00:52:25 +0200 |
commit | 31dfe20dd2fe16c2a3a6816d140b8a32dbdc06ba (patch) | |
tree | 321a6eb57e018866779df59bc4ef6144d4780a40 /libavformat/rtmpproto.c | |
parent | 48a40e09c4858c43627d9bc25efc3c47efdde5af (diff) | |
parent | 90c9edba58eddf39e77937a6c602d7ff289c9bfd (diff) | |
download | ffmpeg-31dfe20dd2fe16c2a3a6816d140b8a32dbdc06ba.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
doc: Replace some @file tags by more suitable markup.
fate: Set FUZZ factor of vorbis-13 test to 2.
fate: Set FUZZ factor of (e)ac3-encode test to 3.
fate: remove unused code from regressions-funcs.sh
rtmp: Don't assume path points to a string of nonzero length
avconv: fix behavior with -ss as an output option.
Conflicts:
doc/platform.texi
doc/protocols.texi
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index c7db91de9e..345b07ca5d 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -895,9 +895,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) fname = path + 10; memcpy(rt->app, "ondemand", 9); } else { - char *p = strchr(path + 1, '/'); + char *next = *path ? path + 1 : path; + char *p = strchr(next, '/'); if (!p) { - fname = path + 1; + fname = next; rt->app[0] = '\0'; } else { char *c = strchr(p + 1, ':'); |