Commit f21c9028 authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

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.
parent a48e3eb4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment