Skip to content

Commit

Permalink
Fix 24 bit audio in vfw
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik authored and WolframRhodium committed Apr 4, 2024
1 parent 1c25129 commit dc004bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vfw/vsvfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ HRESULT VapourSynthStream::Read2(LONG lStart, LONG lSamples, LPVOID lpBuffer, LO
size_t offset = 0;
size_t copyLength = VS_AUDIO_FRAME_SAMPLES;
if (firstFrameSample < lStart) {
offset = (lStart - firstFrameSample) * bytesPerOutputSample;
offset = (lStart - firstFrameSample) * ai->format.bytesPerSample;
copyLength -= (lStart - firstFrameSample);
}
if (lSamples < copyLength)
Expand Down

0 comments on commit dc004bf

Please sign in to comment.