diff options
author | Marton Balint <cus@passwd.hu> | 2017-12-29 01:01:37 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-01-28 23:06:43 +0100 |
commit | ea3672b7d67c432724bdbc8de0221f869b6a04c6 (patch) | |
tree | 7127b576630f140f79a0f73d07bc4a34a92ea824 /libavformat/internal.h | |
parent | dc5d1515681b57a257443ba72bb81fb3e6e6621b (diff) | |
download | ffmpeg-ea3672b7d67c432724bdbc8de0221f869b6a04c6.tar.gz |
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/internal.h')
-rw-r--r-- | libavformat/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 0cd0556dc7..1e2a3e05a1 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -696,4 +696,11 @@ int ff_interleaved_peek(AVFormatContext *s, int stream, int ff_lock_avformat(void); int ff_unlock_avformat(void); +/** + * Set AVFormatContext url field to the provided pointer. The pointer must + * point to a valid string. The existing url field is freed if necessary. Also + * set the legacy filename field to the same string which was provided in url. + */ +void ff_format_set_url(AVFormatContext *s, char *url); + #endif /* AVFORMAT_INTERNAL_H */ |