Commit a28468d0 authored by Vittorio Giovara's avatar Vittorio Giovara

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
parent 9257692a
...@@ -169,7 +169,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) ...@@ -169,7 +169,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
} }
if (ctx->swfurl) { if (ctx->swfurl) {
av_strlcat(filename, " swfUrl=", len); av_strlcat(filename, " swfUrl=", len);
av_strlcat(filename, ctx->pageurl, len); av_strlcat(filename, ctx->swfurl, len);
} }
if (ctx->flashver) { if (ctx->flashver) {
av_strlcat(filename, " flashVer=", len); av_strlcat(filename, " flashVer=", len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment