msacm: Initialize some ACMSTREAMHEADER fields for the sake of native codecs.
Initialize cb[Src|Dst]LengthUsed to 0 before calling into codec, required by (some?) native codecs.
This commit is contained in:
parent
a48e3eb494
commit
f21c9028a5
|
@ -99,6 +99,9 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash,
|
|||
return ACMERR_UNPREPARED;
|
||||
}
|
||||
|
||||
pash->cbSrcLengthUsed = 0;
|
||||
pash->cbDstLengthUsed = 0;
|
||||
|
||||
/* Note: the ACMSTREAMHEADER and ACMDRVSTREAMHEADER structs are of same
|
||||
* size. some fields are private to msacm internals, and are exposed
|
||||
* in ACMSTREAMHEADER in the dwReservedDriver array
|
||||
|
|
Loading…
Reference in New Issue