Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-12-29 03:01:37 +0300
committerMarton Balint <cus@passwd.hu>2018-01-29 01:06:43 +0300
commitea3672b7d67c432724bdbc8de0221f869b6a04c6 (patch)
tree7127b576630f140f79a0f73d07bc4a34a92ea824 /libavformat/avformat.h
parentdc5d1515681b57a257443ba72bb81fb3e6e6621b (diff)
avformat: add url field to AVFormatContext
This will replace the 1024 character limited filename field. Compatiblity for output contexts are provided by copying filename field to URL if URL is unset and by providing an internal function for muxers to set both url and filename at once. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 60ab9fbc80..d1bd4902d0 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1403,6 +1403,21 @@ typedef struct AVFormatContext {
char filename[1024];
/**
+ * input or output URL. Unlike the old filename field, this field has no
+ * length restriction.
+ *
+ * - demuxing: set by avformat_open_input(), initialized to an empty
+ * string if url parameter was NULL in avformat_open_input().
+ * - muxing: may be set by the caller before calling avformat_write_header()
+ * (or avformat_init_output() if that is called first) to a string
+ * which is freeable by av_free(). Set to an empty string if it
+ * was NULL in avformat_init_output().
+ *
+ * Freed by libavformat in avformat_free_context().
+ */
+ char *url;
+
+ /**
* Position of the first frame of the component, in
* AV_TIME_BASE fractional seconds. NEVER set this value directly:
* It is deduced from the AVStream values.