summaryrefslogtreecommitdiff
path: root/libavformat/librtmp.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-17 00:22:22 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-18 00:38:26 +0100
commita28468d0daf4be14761c16a3ddd33266b2380123 (patch)
treebfc41564e12679840122a4dbb18fdb86b5c67c67 /libavformat/librtmp.c
parent9257692ac15eff7b07540c1f61cebde0d8823fbd (diff)
librtmp: append the correct field to the string
Also prevent a NULL pointer dereference. CC: libav-stable@libav.org Bug-Id: CID 1250329 / CID 1250331
Diffstat (limited to 'libavformat/librtmp.c')
-rw-r--r--libavformat/librtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c
index 74e2c49572..fac3a35196 100644
--- a/libavformat/librtmp.c
+++ b/libavformat/librtmp.c
@@ -169,7 +169,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
}
if (ctx->swfurl) {
av_strlcat(filename, " swfUrl=", len);
- av_strlcat(filename, ctx->pageurl, len);
+ av_strlcat(filename, ctx->swfurl, len);
}
if (ctx->flashver) {
av_strlcat(filename, " flashVer=", len);