Maarten Lankhorst : avifile: Fix playback of fixed sample size audio streams.
Alexandre Julliard
julliard at winehq.org
Wed Jan 20 14:29:44 CST 2010
Module: wine
Branch: master
Commit: bfe9e6d74c833b485116bb51bb3196daf661b332
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfe9e6d74c833b485116bb51bb3196daf661b332
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed Jan 20 01:08:31 2010 +0100
avifile: Fix playback of fixed sample size audio streams.
---
dlls/avifil32/avifile.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/avifil32/avifile.c b/dlls/avifil32/avifile.c
index c034a6b..e627196 100644
--- a/dlls/avifil32/avifile.c
+++ b/dlls/avifil32/avifile.c
@@ -1087,6 +1087,15 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream *iface, LONG start,
LONG block = start;
LONG offset = 0;
+ if (!buffer)
+ {
+ if (bytesread)
+ *bytesread = samples*This->sInfo.dwSampleSize;
+ if (samplesread)
+ *samplesread = samples;
+ return AVIERR_OK;
+ }
+
/* convert start sample to block,offset pair */
AVIFILE_SamplesToBlock(This, &block, &offset);
More information about the wine-cvs
mailing list