[FFmpeg-cvslog] librtmp: append the correct field to the string
Vittorio Giovara
git at videolan.org
Tue Nov 18 03:07:40 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Nov 17 00:22:22 2014 +0100| [a28468d0daf4be14761c16a3ddd33266b2380123] | committer: Vittorio Giovara
librtmp: append the correct field to the string
Also prevent a NULL pointer dereference.
CC: libav-stable at libav.org
Bug-Id: CID 1250329 / CID 1250331
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a28468d0daf4be14761c16a3ddd33266b2380123
---
libavformat/librtmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c
index 74e2c49..fac3a35 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);
More information about the ffmpeg-cvslog
mailing list