Module: wine
Branch: refs/heads/master
Commit: f21c9028a541840f90cf0b95d467e9e87a8399ba
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f21c9028a541840f90cf0b9…
Author: Alex Villacís Lasso <a_villacis(a)palosanto.com>
Date: Wed Jan 4 15:27:35 2006 +0100
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.
---
dlls/msacm/stream.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msacm/stream.c b/dlls/msacm/stream.c
index 35604fc..cde8e4d 100644
--- a/dlls/msacm/stream.c
+++ b/dlls/msacm/stream.c
@@ -99,6 +99,9 @@ MMRESULT WINAPI acmStreamConvert(HACMSTR
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