]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/dshow.c
http: avoid out of bound accesses on broken Set-Cookie headers
[ffmpeg] / libavdevice / dshow.c
index f2453e611447706daff93bbfdca42deb2fbd8301..de910c09943440475d23e3c13f5f0b693b09324a 100644 (file)
@@ -1033,7 +1033,7 @@ static int parse_device_name(AVFormatContext *avctx)
 {
     struct dshow_ctx *ctx = avctx->priv_data;
     char **device_name = ctx->device_name;
-    char *name = av_strdup(avctx->filename);
+    char *name = av_strdup(avctx->url);
     char *tmp = name;
     int ret = 1;
     char *type;