diff --git a/Core/HW/MediaEngine.cpp b/Core/HW/MediaEngine.cpp index 93b9452ff..133a2d598 100644 --- a/Core/HW/MediaEngine.cpp +++ b/Core/HW/MediaEngine.cpp @@ -473,7 +473,7 @@ bool MediaEngine::stepVideo(int videoPixelMode) { // Update the linesize for the new format too. We started with the largest size, so it should fit. m_pFrameRGB->linesize[0] = getPixelFormatBytes(videoPixelMode) * m_desWidth; - AVPacket packet; + AVPacket packet = {0}; av_init_packet(&packet); int frameFinished; bool bGetFrame = false;