]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avformat.h
avformat: deprecate AVFormatContext filename field
[ffmpeg] / libavformat / avformat.h
index d1bd4902d0a2e16ee8ced7140cb68e164264b347..82f98453375eda58abc510164a5768a3f1f688c8 100644 (file)
@@ -1394,13 +1394,18 @@ typedef struct AVFormatContext {
      */
     AVStream **streams;
 
+#if FF_API_FORMAT_FILENAME
     /**
      * input or output filename
      *
      * - demuxing: set by avformat_open_input()
      * - muxing: may be set by the caller before avformat_write_header()
+     *
+     * @deprecated Use url instead.
      */
+    attribute_deprecated
     char filename[1024];
+#endif
 
     /**
      * input or output URL. Unlike the old filename field, this field has no