]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/img2dec.c
avformat: migrate to AVFormatContext->url
[ffmpeg] / libavformat / img2dec.c
index ecf64eaffaed2eb920d08fb6e3bca4187693f861..62db0d92cf3e25bb361da693bbfe88a5c8fd03ec 100644 (file)
@@ -198,7 +198,7 @@ int ff_img_read_header(AVFormatContext *s1)
         return AVERROR(EINVAL);
     }
 
-    av_strlcpy(s->path, s1->filename, sizeof(s->path));
+    av_strlcpy(s->path, s1->url, sizeof(s->path));
     s->img_number = 0;
     s->img_count  = 0;
 
@@ -338,7 +338,7 @@ int ff_img_read_header(AVFormatContext *s1)
 
             pd.buf = probe_buffer;
             pd.buf_size = probe_buffer_size;
-            pd.filename = s1->filename;
+            pd.filename = s1->url;
 
             while ((fmt = av_iformat_next(fmt))) {
                 if (fmt->read_header != ff_img_read_header ||