diff --git a/src/media/media_decoder.cpp b/src/media/media_decoder.cpp index e34cff5d01741324b3b2e1c6fc23f32e06728c70..83feda0ecffcf30b97f1eabafaa8963735cd1189 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(