Merge pull request #5812 from raven02/patch-4

ME : Init packet as {0}
This commit is contained in:
Henrik Rydgård 2014-04-06 14:58:14 +02:00
commit 9d99aaaeaf

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;