Skip to content
Snippets Groups Projects
Commit 1cb755ae authored by Eloi Bail's avatar Eloi Bail Committed by gerrit2
Browse files

media_decoder: increase jitter buffer size

jitter buffer size is by default equal to 10.
We see often packets reordering (on internet) that can not be managed
by jitter buffer sized to 10. We increase the jitter buffer size to 30.

Notice that it would lead to more latency and thus potentially to
desynchronisation

Issue: #80311
Change-Id: I8e6ba6faea2be74602c5e63fded1b0d896c7a847
parent b7ee00ee
Branches
Tags
No related merge requests found
...@@ -88,6 +88,9 @@ int MediaDecoder::openInput(const DeviceParams& params) ...@@ -88,6 +88,9 @@ int MediaDecoder::openInput(const DeviceParams& params)
av_dict_set(&options_, "loop", params.loop.c_str(), 0); av_dict_set(&options_, "loop", params.loop.c_str(), 0);
av_dict_set(&options_, "sdp_flags", params.sdp_flags.c_str(), 0); av_dict_set(&options_, "sdp_flags", params.sdp_flags.c_str(), 0);
// force jitter buffer queue size to 30 instead of 10
av_dict_set(&options_, "reorder_queue_size", "30", 0);
RING_DBG("Trying to open device %s with format %s", params.input.c_str(), RING_DBG("Trying to open device %s with format %s", params.input.c_str(),
params.format.c_str()); params.format.c_str());
int ret = avformat_open_input( int ret = avformat_open_input(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment