avifil32: Properly check the required buffer size in AVIFILE_AddFrame().
This commit is contained in:
parent
32c3adbbaa
commit
c2051d33d6
|
@ -1384,7 +1384,7 @@ static HRESULT AVIFILE_AddFrame(IAVIStreamImpl *This, DWORD ckid, DWORD size, DW
|
|||
This->sInfo.dwFlags |= AVISTREAMINFO_FORMATCHANGES;
|
||||
This->sInfo.dwFormatChangeCount++;
|
||||
|
||||
if (This->idxFmtChanges == NULL || This->sInfo.dwFormatChangeCount < This->nIdxFmtChanges) {
|
||||
if (This->idxFmtChanges == NULL || This->nIdxFmtChanges < This->sInfo.dwFormatChangeCount) {
|
||||
This->nIdxFmtChanges += 16;
|
||||
if (This->idxFmtChanges == NULL)
|
||||
This->idxFmtChanges =
|
||||
|
|
Loading…
Reference in New Issue