diff mbox

[FFmpeg-devel] avformat/dashenc: Removed usage of deprecated 'filename' variable

Message ID 1519456638-16409-1-git-send-email-kjeyapal@akamai.com
State Accepted
Commit e3851f6a3739e84094051d8b9c85732ab12c9fd9
Headers show

Commit Message

Jeyapal, Karthick Feb. 24, 2018, 7:17 a.m. UTC
From: Karthick Jeyapal <kjeyapal@akamai.com>

---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index d6474f3..ebff3c5 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1307,7 +1307,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),