diff --git a/player/display_to_screen.cpp b/player/display_to_screen.cpp index 2d549c8..a707088 100644 --- a/player/display_to_screen.cpp +++ b/player/display_to_screen.cpp @@ -41,8 +41,8 @@ void display_to_screen() SDL_Texture *pSDLTexture = SDL_CreateTexture(pSDLRenderer, SDL_PIXELFORMAT_IYUV, SDL_TEXTUREACCESS_STREAMING, 1920, 1080); - AVFrame *pAVFrame; - AVFrame *pAVFrameHold; + AVFrame *pAVFrame = NULL; + AVFrame *pAVFrameHold = NULL; size_t queueSize; while (true) @@ -125,4 +125,4 @@ void display_to_screen() } SDL_Quit(); -} \ No newline at end of file +}