@@ -240,6 +240,11 @@ static int mkdir_p(const char *path) {
return ret;
}
+static int hls_get_int_from_double(double val)
+{
+ return (int)((val - (int)val) >= 0.001) ? (int)(val + 1) : (int)val;
+}
+
static int is_http_proto(char *filename) {
const char *proto = avio_find_protocol_name(filename);
return proto ? (!av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https")) : 0;
@@ -36,11 +36,6 @@ typedef enum {
PLAYLIST_TYPE_NB,
} PlaylistType;
-static inline int hls_get_int_from_double(double val)
-{
- return (int)((val - (int)val) >= 0.001) ? (int)(val + 1) : (int)val;
-}
-
void ff_hls_write_playlist_version(AVIOContext *out, int version);
void ff_hls_write_stream_info(AVStream *st, AVIOContext *out,
int bandwidth, char *filename);
From: Karthick Jeyapal <kjeyapal@akamai.com> dashenc no longer needs this function. --- libavformat/hlsenc.c | 5 +++++ libavformat/hlsplaylist.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-)