mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-05 01:09:14 +00:00
Reduce buffering for MMAL to avoid requiring 128 MB VRAM split
This commit is contained in:
parent
529fdf0341
commit
77386f8dfc
1 changed files with 4 additions and 2 deletions
|
@ -22,9 +22,11 @@ MmalRenderer::~MmalRenderer()
|
|||
}
|
||||
}
|
||||
|
||||
bool MmalRenderer::prepareDecoderContext(AVCodecContext*, AVDictionary**)
|
||||
bool MmalRenderer::prepareDecoderContext(AVCodecContext*, AVDictionary** options)
|
||||
{
|
||||
/* Nothing to do */
|
||||
// FFmpeg defaults this to 10 which is too large to fit in the default 64 MB VRAM split.
|
||||
// Reducing to 2 seems to work fine for our bitstreams (max of 1 buffered frame needed).
|
||||
av_dict_set_int(options, "extra_buffers", 2, 0);
|
||||
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Using MMAL renderer");
|
||||
|
|
Loading…
Reference in a new issue