avformat/dashenc: Removed usage of deprecated 'filename' variable
authorKarthick Jeyapal <kjeyapal@akamai.com>
Sat, 24 Feb 2018 07:17:18 +0000 (12:47 +0530)
committerKarthick Jeyapal <kjeyapal@akamai.com>
Tue, 27 Feb 2018 03:10:48 +0000 (08:40 +0530)
libavformat/dashenc.c

index febe468..83e0cff 100644 (file)
@@ -1310,7 +1310,7 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt)
     //open the output context when the first frame of a segment is ready
     if (!c->single_file && !os->out) {
         AVDictionary *opts = NULL;
-        const char *proto = avio_find_protocol_name(s->filename);
+        const char *proto = avio_find_protocol_name(s->url);
         int use_rename = proto && !strcmp(proto, "file");
         os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
         ff_dash_fill_tmpl_params(os->filename, sizeof(os->filename),