From patchwork Thu Dec 21 15:41:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jeyapal, Karthick" X-Patchwork-Id: 6891 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.79.195 with SMTP id r64csp1077204jad; Thu, 21 Dec 2017 07:41:42 -0800 (PST) X-Google-Smtp-Source: ACJfBotlxblBKPsUfD6ZDlFxJ+5wIWqkX4esMvkEvZct+f2s84xJNXCil0jJzYKG3LlmTyr2Pan7 X-Received: by 10.223.154.19 with SMTP id z19mr11736138wrb.260.1513870902716; Thu, 21 Dec 2017 07:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513870902; cv=none; d=google.com; s=arc-20160816; b=Ixdwad7aKOfVmwweI/IHzUfByeY3vg2X+XpwYuhtQnDOhTuRbyl6cHO/txS3t6N62o WRJ6XvwY3Q+aOAK+wc9SNRA3Wl1xpaSNImWPloDJwGFeflukXsIxm6YP5qa6xmnizht4 qnIjdIChv1rpGG1iN/LxXdI/h5b0ycKs+QOyt2xemQMhRSiXAM90ReaKzTDILPpO8D92 wsOoVnWvkLT9rrExdvqWMOw1K0weZTEqZLNo8UTxDyxP5nKTTDoGDF0FunrFjLzWOFoX ArVcm8OZFj88nPV8Avpqz9RUieSBNvbdQZLHZafvqhYUfbO9ddAiL3ZW6nOZBJMfY/Yq PeNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=9FCvZ1/qjwk9A/2ttz1Q1QqzMEBzgy1qYYlsMzmmEEI=; b=0jwIHX6gFo19IyVrZWJrKk+sN4F0cZTeURgcWG/I575VG6ZL4s/4GOVIe1sIuP/Uuf UVL/XHRaUlm1RZbk8xS6B90xxDS59ByoVURUQ67yhIpb7/v7u7yR5eDDaT/An4xzoetj L+ENNAlhlxQESvx5UfGDaHfSvOXjuYd/txsRPc89+S2SIWGafrRm4QzJxmkKulCtKY9J RwxVqssO5b75s9UDa5CBzKkuYGA6UNMpVa4OaQ+fPcde8v/2bL4XIV30I70XBWYr8Wtg +25g5alHVk7BDW9R8PbafgL9jGIKwr7Foz/DtsB2B1BWReEYMlgyejVySdAJ6qZeHfh4 HSQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=Ks74anTm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m5si3422480wrh.21.2017.12.21.07.41.41; Thu, 21 Dec 2017 07:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=Ks74anTm; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A04A668831E; Thu, 21 Dec 2017 17:41:27 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a2i831.smtp2go.com (a2i831.smtp2go.com [103.47.207.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0FBDF688297 for ; Thu, 21 Dec 2017 17:41:21 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m78bu0.a1-4.dyn; x=1513871797; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=gCauH7eIsIIDsWlSCcQtEgQB6hRyf0D/9m6StaGau5Y=; b=Ks74anTm n2zIoGiu4ttOpeLz3BzvU6h2rpqp0oq+3g5hi5W5ilaw89QQFNUjLW7mKMKEW9sBZsvOU5Dxhegw+ 5YA0D2yppQ3b+F0/O6m2CO6KDcS0LYWFYd1UKaEIgVmw3R1K/ecMrcYkCQ0nI4nKAwPdmL5xO+aWm /g8ZVsgU8+MlwtS7RwobfVl7L3J0B4klDzNPjTau7/1sF46O/D4Jp9UiRT3u8N1PIy1GupsxTgPBE a6Nekb+JdlrHkmsZPsa8UM43uLDaTxhVuHZ8pPE1Ydl0LsII78SQyfUzpJuQmuv+WBtPFOOQLUrFn x1LzykOfZzMrqGmI/XPlXo/9zA==; From: Karthick J To: ffmpeg-devel@ffmpeg.org Date: Thu, 21 Dec 2017 21:11:12 +0530 Message-Id: <1513870872-21179-2-git-send-email-kjeyapal@akamai.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513870872-21179-1-git-send-email-kjeyapal@akamai.com> References: <1513870872-21179-1-git-send-email-kjeyapal@akamai.com> X-Smtpcorp-Track: 1-S2yORyIuha0D.O5YpX_fmo Feedback-ID: 337386m:337386asVRLGB:337386saH53CiHKN:SMTPCORP X-Report-Abuse: Please forward a copy of this message, including all headers, to Subject: [FFmpeg-devel] [PATCH 2/2] avformat/hlsenc: Moved hls_get_int_from_double() function locally to hlsenc.c X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Karthick Jeyapal MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Karthick Jeyapal dashenc no longer needs this function. --- libavformat/hlsenc.c | 5 +++++ libavformat/hlsplaylist.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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);