Skip to content
Snippets Groups Projects
Commit 21b3fcf9 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

libav_utils: cleanup

Change-Id: I73e6ad39f6b0dc37e9142d33b079dae230c92367
parent 93286f4a
No related branches found
No related tags found
No related merge requests found
......@@ -183,14 +183,6 @@ void ring_avcodec_init()
std::call_once(already_called, init_once);
}
void ring_url_split(const char *url,
char *hostname, size_t hostname_size, int *port,
char *path, size_t path_size)
{
av_url_split(NULL, 0, NULL, 0, hostname, hostname_size, port,
path, path_size, url);
}
bool
is_yuv_planar(const AVPixFmtDescriptor& desc)
{
......
......@@ -38,10 +38,6 @@ namespace jami { namespace libav_utils {
const char *const DEFAULT_H264_PROFILE_LEVEL_ID = "profile-level-id=428029";
const char *const MAX_H264_PROFILE_LEVEL_ID = "profile-level-id=640034";
void ring_url_split(const char *url,
char *hostname, size_t hostname_size, int *port,
char *path, size_t path_size);
bool is_yuv_planar(const AVPixFmtDescriptor& desc);
std::string getError(int err);
......
......@@ -323,7 +323,7 @@ SocketPair::openSockets(const char* uri, int local_rtp_port)
char path[1024];
int dst_rtp_port;
libav_utils::ring_url_split(uri, hostname, sizeof(hostname), &dst_rtp_port, path, sizeof(path));
av_url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &dst_rtp_port, path, sizeof(path), uri);
const int local_rtcp_port = local_rtp_port + 1;
const int dst_rtcp_port = dst_rtp_port + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment