]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gxfenc.c
avformat: migrate to AVFormatContext->url
[ffmpeg] / libavformat / gxfenc.c
index 0e0772b744157543765370f93377d31a3632b229..3507c00b40122510e6701de570a4bdbcfb8b1627 100644 (file)
@@ -311,7 +311,7 @@ static int gxf_write_material_data_section(AVFormatContext *s)
     AVIOContext *pb = s->pb;
     int64_t pos;
     int len;
-    const char *filename = strrchr(s->filename, '/');
+    const char *filename = strrchr(s->url, '/');
 
     pos = avio_tell(pb);
     avio_wb16(pb, 0); /* size */
@@ -320,7 +320,7 @@ static int gxf_write_material_data_section(AVFormatContext *s)
     if (filename)
         filename++;
     else
-        filename = s->filename;
+        filename = s->url;
     len = strlen(filename);
 
     avio_w8(pb, MAT_NAME);