From 1cb755ae060501b9ffa1904bc771c17b2d15a809 Mon Sep 17 00:00:00 2001 From: Eloi BAIL <eloi.bail@savoirfairelinux.com> Date: Fri, 11 Sep 2015 17:27:12 -0400 Subject: [PATCH] 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 --- src/media/media_decoder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/media/media_decoder.cpp b/src/media/media_decoder.cpp index e34cff5d01..83feda0ecf 100644 --- a/src/media/media_decoder.cpp +++ b/src/media/media_decoder.cpp @@ -88,6 +88,9 @@ int MediaDecoder::openInput(const DeviceParams& params) av_dict_set(&options_, "loop", params.loop.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(), params.format.c_str()); int ret = avformat_open_input( -- GitLab