OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0b6e6
)
rtmpproto: Include the full path as app when "slist=" is found
author
Martin Storsjö
<martin@martin.st>
Wed, 11 Nov 2015 20:38:39 +0000
(22:38 +0200)
committer
Martin Storsjö
<martin@martin.st>
Sun, 13 Dec 2015 21:23:06 +0000
(23:23 +0200)
This matches what librtmp does. This fixes automatic url parsing of
crunchyroll urls.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c
patch
|
blob
|
history
diff --git
a/libavformat/rtmpproto.c
b/libavformat/rtmpproto.c
index
77a801d
..
4ed8108
100644
(file)
--- a/
libavformat/rtmpproto.c
+++ b/
libavformat/rtmpproto.c
@@
-2674,8
+2674,8
@@
reconnect:
qmark = strchr(path, '?');
if (qmark && strstr(qmark, "slist=")) {
char* amp;
- // After slist we have the playpath,
before the params, the
app
- av_strlcpy(rt->app, path + 1,
FFMIN(qmark - path, APP_MAX_LENGTH)
);
+ // After slist we have the playpath,
the full path is used as
app
+ av_strlcpy(rt->app, path + 1,
APP_MAX_LENGTH
);
fname = strstr(path, "slist=") + 6;
// Strip any further query parameters from fname
amp = strchr(fname, '&');