Fixed crash on h264 context cleanup (windows).

This commit is contained in:
Armin Novak 2017-02-17 11:40:27 +01:00
parent f8d22c00d6
commit 5755cb72a1

View File

@ -541,7 +541,7 @@ static void mf_uninit(H264_CONTEXT* h264)
}
for (x = 0; x < sizeof(h264->pYUVData) / sizeof(h264->pYUVData[0]); x++)
free(h264->pYUVData[x][0]);
free(h264->pYUVData[x]);
memset(h264->pYUVData, 0, sizeof(h264->pYUVData));
memset(h264->iStride, 0, sizeof(h264->iStride));