From patchwork Sat Oct 21 18:54:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rostislav Pehlivanov X-Patchwork-Id: 5639 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp5072111jah; Sat, 21 Oct 2017 12:02:38 -0700 (PDT) X-Received: by 10.223.135.143 with SMTP id b15mr5755489wrb.278.1508612558817; Sat, 21 Oct 2017 12:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508612558; cv=none; d=google.com; s=arc-20160816; b=Ra84YmwvgBuXy9kenzd+UTVR66jzxKtb55jB6pvyZwcweBhZPbjksA6pJdQsyxf5GQ sB0ARC+1pLfIKIAA1clwtm3O0qjdP1jUjL/nRtlPuM+ZW0IP21CeF31g5mLvV4leUCni /BYO1HvvtoObg6w6kFbY4e6LhxNzpXhXHZ0Hmvje1VeCvalzDyQ8jxgUYVH7WicVl75t EQRkAnaiS4telqhdkzeDJ2LIGVM/CJpGgAQ0iErFUfJjbNhqcHwbxSZjJnb5fhX+gI1+ YoU0d5Vlf1Al68yWwfyQvhoSRVveOJY4vot3HobxDblRMdMyxiR+x70FeKWdjA/exguz Wn8A== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Au80nha74MY9FS46XB78A+EGuOjrarSxN5yosOZ4XPE=; b=WSvxFIM0nsES3l0+lpwGy6tGJBEQwJQM9MzFsJIvvyVqrxWTAPFkj9vTrpOK61f0Vv dtZtR1Vu/R1xEDVRVKt+6tpuCKFVbSxnYoHGlUqNZgpNXbTgGjbVGlsr2AZq6DnoYh4x /xttAIfGBdygHnMAhk+5Le3Ea7qPB8n4MM6zX12yQpxrt5QT2abk0YQzCQ4gphmMXK+D w3hyyPvBF1OTso7cmGDls/+JEXNAyf+hURIRLUSH3IDHPFzyV2R/y5hTiLpLzooeXZmb L9++pkvwO86tKY76ufkAlejhjpJHh0rKZ+AbhttOq3R2BEXTZYM9YZ9EuOot9YCXtS/c 7mbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=cGMbNoIP; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id v191si1064860wmf.87.2017.10.21.12.02.38; Sat, 21 Oct 2017 12:02:38 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=cGMbNoIP; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6D8E96899DC; Sat, 21 Oct 2017 22:02:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C979D6899DC for ; Sat, 21 Oct 2017 22:02:24 +0300 (EEST) Received: by mail-wr0-f196.google.com with SMTP id q42so13832982wrb.7 for ; Sat, 21 Oct 2017 12:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LHCZLFv5aOkY8NeUykmhO9aEaSRcmW5MbdMhcV63igU=; b=cGMbNoIPLTvGrhrIP1MrsfImyAMS8Qn5das2pXZbWVIeX1vP2nSx+Rt24Cwoph6s43 sx/MBvBJUkZ7jPyWnQPWxuJR4y6MemzSf+VvH+WqZhzw9wocLTnS7QqyoUT3HRXmwkjN a+SvQ72H5R1sqMYNk9A1V/nSRNkKsD+tUwc2I4e1wUOZ5C5vomv4v2HJ2MbzZ9UEX7Il 3wu/orkLCKzm0XBY4PQKo2q1zCmbaPtiIgsNAIMYPSXfL9bca6xbryxicKcuT5lvMm68 nnlXByOrXpa3nd/hKbQ/hTaSyarcYCVnoCGSGwo8H1EFBoxaQR3XGuePgySuT8BHUHoD IPig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LHCZLFv5aOkY8NeUykmhO9aEaSRcmW5MbdMhcV63igU=; b=ke5ID93PdlXUrCmw0BYUfmXFe7cSbtMNu2SCDVayWntM4sXM/iTf7oImdRhIoQd8Zh GUxY7Htvbdz91/zxV+DD5mNAuv92yrwFbMFv0fSIkZXcBMPVmgEBlL99Lwpi1bolH7/s Twkpy5MG3dJuS+aJm66URkchgNwORZI/YgafT9oWwMnEZc4YE/e/M9B4Ok7MVe3NP1HW UX3iiuK7CMgT47S3VZ/TtCKJ1o9EwmzV3M88VUcgKtE+GGLjAxhSw1cPrUJpqZBhSe8H 0wMd5Nhl0tu66QyznPyX0UoRmIaEJd7q8e0EVpY5YjOu9H0fqk0UG+PH8fFXxUN1eONH R7vg== X-Gm-Message-State: AMCzsaXCliPOD7e7BJh6HF1CZ7JXr5tAkdqQQZMySCvI5EQaBBjjXm0H RMx49crSXKdsAo/QBi84zD3gcE6O X-Google-Smtp-Source: ABhQp+QStSYFWeDnUQPybV6mWBpufTW1O+2tZdZJWTW2okv+egv1GB3jExaHV3ozGyql/QQKrdrouQ== X-Received: by 10.223.201.8 with SMTP id m8mr7829376wrh.37.1508612088286; Sat, 21 Oct 2017 11:54:48 -0700 (PDT) Received: from moonbase.pars.ee (host86-177-182-57.range86-177.btcentralplus.com. [86.177.182.57]) by smtp.gmail.com with ESMTPSA id 76sm1066312wmj.37.2017.10.21.11.54.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Oct 2017 11:54:47 -0700 (PDT) From: Rostislav Pehlivanov To: ffmpeg-devel@ffmpeg.org Date: Sat, 21 Oct 2017 19:54:37 +0100 Message-Id: <20171021185439.30693-5-atomnuker@gmail.com> X-Mailer: git-send-email 2.15.0.rc1.287.g2b38de12cc In-Reply-To: <20171021185439.30693-4-atomnuker@gmail.com> References: <20171021185439.30693-1-atomnuker@gmail.com> <20171021185439.30693-2-atomnuker@gmail.com> <20171021185439.30693-3-atomnuker@gmail.com> <20171021185439.30693-4-atomnuker@gmail.com> Subject: [FFmpeg-devel] [PATCH 4/6] libavformat: remove the ff_rtp_get_local_rtcp_port function 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: Rostislav Pehlivanov MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Only used by ffserver Signed-off-by: Rostislav Pehlivanov --- libavformat/libavformat.v | 1 - libavformat/rtpproto.c | 6 ------ libavformat/rtpproto.h | 1 - 3 files changed, 8 deletions(-) diff --git a/libavformat/libavformat.v b/libavformat/libavformat.v index 4edf52f45e..87401f7a9b 100644 --- a/libavformat/libavformat.v +++ b/libavformat/libavformat.v @@ -5,7 +5,6 @@ LIBAVFORMAT_MAJOR { ff_socket_nonblock; ff_rtsp_parse_line; ff_rtp_get_local_rtp_port; - ff_rtp_get_local_rtcp_port; ffio_open_dyn_packet_buf; ffio_set_buf_size; ffurl_close; diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 0706cae25f..c01d9cea18 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -636,12 +636,6 @@ int ff_rtp_get_local_rtp_port(URLContext *h) * @return the local port number */ -int ff_rtp_get_local_rtcp_port(URLContext *h) -{ - RTPContext *s = h->priv_data; - return ff_udp_get_local_port(s->rtcp_hd); -} - static int rtp_get_file_handle(URLContext *h) { RTPContext *s = h->priv_data; diff --git a/libavformat/rtpproto.h b/libavformat/rtpproto.h index 5b243fb248..131aac5f3c 100644 --- a/libavformat/rtpproto.h +++ b/libavformat/rtpproto.h @@ -26,6 +26,5 @@ int ff_rtp_set_remote_url(URLContext *h, const char *uri); int ff_rtp_get_local_rtp_port(URLContext *h); -int ff_rtp_get_local_rtcp_port(URLContext *h); #endif /* AVFORMAT_RTPPROTO_H */