int m_nVideoWidth = 1862949376;//传入一个非法值
int m_nVideoHeight = 1718187630;//传入一个非法值
m_screen = SDL_CreateWindowFrom(hWnd);
m_sdlRenderer = SDL_CreateRenderer(m_screen, -1, SDL_RENDERER_ACCELERATED);
if(m_sdlRenderer == nullptr)
m_sdlRenderer = SDL_CreateRenderer(m_screen, -1, SDL_RENDERER_SOFTWARE);
m_sdlTexture = SDL_CreateTexture(m_sdlRenderer, SDL_PIXELFORMAT_IYUV, SDL_TEXTUREACCESS_STREAMING, m_nVideoWidth, m_nVideoHeight);
此时会导致无法响应ui消息处理回调。因此在传入视频宽、高信息前,一定要进行判断