diff --git a/app/streaming/renderers/sdl.cpp b/app/streaming/renderers/sdl.cpp index aa5c28b2..64bbf3cd 100644 --- a/app/streaming/renderers/sdl.cpp +++ b/app/streaming/renderers/sdl.cpp @@ -37,6 +37,10 @@ bool SdlRenderer::initialize(SDL_Window* window, return false; } + // The window may be smaller than the stream size, so ensure our + // logical rendering surface size is equal to the stream size + SDL_RenderSetLogicalSize(m_Renderer, width, height); + m_Texture = SDL_CreateTexture(m_Renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, diff --git a/app/streaming/video.cpp b/app/streaming/video.cpp index f77c3074..61723ed6 100644 --- a/app/streaming/video.cpp +++ b/app/streaming/video.cpp @@ -139,6 +139,9 @@ int Session::drSetup(int videoFormat, int width, int height, int /* frameRate */ { AVCodec* decoder; + // Use linear filtering when renderer scaling is required + SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1"); + av_init_packet(&s_Pkt); if (!chooseDecoder(s_ActiveSession->m_Preferences.videoDecoderSelection,