Revisión | b7d167da25227bddc182ab6e454a9403acf2afac (tree) |
---|---|
Tiempo | 2021-10-19 00:56:47 |
Autor | yyagi <yyagi.dtxmania@gmai...> |
Commiter | yyagi |
#43056 oggのデコードでのオフセット設定ミスを修正。
@@ -85,9 +85,9 @@ namespace FDK | ||
85 | 85 | // samples are interleaved (chan0, chan1, chan0, chan1, etc.) |
86 | 86 | // sample value range is -0.99999994f to 0.99999994f unless vorbis.ClipSamples == false |
87 | 87 | |
88 | - if (Dest.Length + offset < p + cnt * 4) | |
88 | + if (Dest.Length < p + cnt * 4) | |
89 | 89 | { |
90 | - cnt = (Dest.Length +(int) offset - p) / 4; | |
90 | + cnt = (Dest.Length - p) / 4; | |
91 | 91 | bEnd = true; |
92 | 92 | } |
93 | 93 | Buffer.BlockCopy(readBuffer, 0, Dest, p, cnt * 4); |