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:
Alex Villacís Lasso 2006-01-04 15:27:35 +01:00 committed by Alexandre Julliard
parent a48e3eb494
commit f21c9028a5
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash,
return ACMERR_UNPREPARED; return ACMERR_UNPREPARED;
} }
pash->cbSrcLengthUsed = 0;
pash->cbDstLengthUsed = 0;
/* Note: the ACMSTREAMHEADER and ACMDRVSTREAMHEADER structs are of same /* Note: the ACMSTREAMHEADER and ACMDRVSTREAMHEADER structs are of same
* size. some fields are private to msacm internals, and are exposed * size. some fields are private to msacm internals, and are exposed
* in ACMSTREAMHEADER in the dwReservedDriver array * in ACMSTREAMHEADER in the dwReservedDriver array