[FFmpeg-devel,2/2] avformat/hlsenc: Moved hls_get_int_from_double() function locally to hlsenc.c

Submitted by kjeyapal@akamai.com on Dec. 21, 2017, 3:41 p.m.

Details

Message ID 1513870872-21179-2-git-send-email-kjeyapal@akamai.com
State New
Headers show

Commit Message

kjeyapal@akamai.com Dec. 21, 2017, 3:41 p.m.
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(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 29fc1d4..14a9a12 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;
diff --git a/libavformat/hlsplaylist.h b/libavformat/hlsplaylist.h
index 48d71b7..fe19f34 100644
--- a/libavformat/hlsplaylist.h
+++ b/libavformat/hlsplaylist.h
@@ -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);