X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpeg.c;h=abdc6a937cb9ebed02ebc4b1dcbd5d91b991f0f8;hb=18ac64235939c4c5c7656546a9545f68339affbe;hp=50fe7a1a7687371468bac32f68134c2a016327de;hpb=d168ff70ea41234b01c21e2d19151e9db3a21f90;p=ffmpeg diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 50fe7a1a768..abdc6a937cb 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -703,7 +703,7 @@ static int vobsub_read_header(AVFormatContext *s) if (!vobsub->sub_name) { char *ext; - vobsub->sub_name = av_strdup(s->filename); + vobsub->sub_name = av_strdup(s->url); if (!vobsub->sub_name) { ret = AVERROR(ENOMEM); goto end; @@ -718,7 +718,7 @@ static int vobsub_read_header(AVFormatContext *s) goto end; } memcpy(ext, !strncmp(ext, "IDX", 3) ? "SUB" : "sub", 3); - av_log(s, AV_LOG_VERBOSE, "IDX/SUB: %s -> %s\n", s->filename, vobsub->sub_name); + av_log(s, AV_LOG_VERBOSE, "IDX/SUB: %s -> %s\n", s->url, vobsub->sub_name); } if (!(iformat = av_find_input_format("mpeg"))) {