Commit bfe9e6d7 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

avifile: Fix playback of fixed sample size audio streams.

parent 7f8ccf03
......@@ -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);
......
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