avifile: Fix playback of fixed sample size audio streams.
This commit is contained in:
parent
7f8ccf0342
commit
bfe9e6d74c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue