ME : Init packet as {0}

This commit is contained in:
raven02 2014-04-06 20:40:04 +08:00
parent c724a6c06a
commit 3fb85dde8f

View File

@ -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;