avifil32: The array index is 0-based.
This commit is contained in:
parent
533419cb35
commit
dda737f36a
|
@ -1524,7 +1524,7 @@ HRESULT WINAPI AVISaveOptionsFree(INT nStreams,LPAVICOMPRESSOPTIONS*ppOptions)
|
|||
if (nStreams < 0 || ppOptions == NULL)
|
||||
return AVIERR_BADPARAM;
|
||||
|
||||
for (; nStreams > 0; nStreams--) {
|
||||
for (nStreams--; nStreams >= 0; nStreams--) {
|
||||
if (ppOptions[nStreams] != NULL) {
|
||||
ppOptions[nStreams]->dwFlags &= ~AVICOMPRESSF_VALID;
|
||||
|
||||
|
|
Loading…
Reference in New Issue