OSDN Git Service

librtmp: append the correct field to the string
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 16 Nov 2014 23:22:22 +0000 (00:22 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 17 Nov 2014 23:38:26 +0000 (00:38 +0100)
Also prevent a NULL pointer dereference.

CC: libav-stable@libav.org
Bug-Id: CID 1250329 / CID 1250331

libavformat/librtmp.c

index 74e2c49..fac3a35 100644 (file)
@@ -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);