summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorKarthick Jeyapal <kjeyapal@akamai.com>2017-12-29 18:11:09 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-29 18:11:09 +0800
commite8f71ef338998458bbbaf09a11bc07f07fbc7954 (patch)
treeb998e620eef9ae604b88fc1efb96d16b3b102d18 /libavformat/internal.h
parent5297ae96a13f615431c9a4cc38cac13c4140b07e (diff)
avformat/hlsenc, utils: Moved is_http_proto from hlsenc to utils for re-use
Reviewed-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 30715b3f50..0cd0556dc7 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -622,6 +622,14 @@ int ff_format_output_open(AVFormatContext *s, const char *url, AVDictionary **op
void ff_format_io_close(AVFormatContext *s, AVIOContext **pb);
/**
+ * Utility function to check if the file uses http or https protocol
+ *
+ * @param s AVFormatContext
+ * @param filename URL or file name to open for writing
+ */
+int ff_is_http_proto(char *filename);
+
+/**
* Parse creation_time in AVFormatContext metadata if exists and warn if the
* parsing fails.
*