Fixed: #2503 Exporting sound streams as FLV

Fixed: Exporting sound streams at all in nightly
This commit is contained in:
Jindra Petřík
2025-08-09 15:38:12 +02:00
parent b9bd5177ed
commit d8dc85109b
7 changed files with 15 additions and 11 deletions

View File

@@ -191,7 +191,7 @@ public class SoundExporter {
FLVOutputStream flv = new FLVOutputStream(fos);
flv.writeHeader(true, false);
int ms = (int) (1000.0 / ((Tag) st).getSwf().frameRate);
int ms = (int) (1000.0 / sh.getSwf().frameRate);
for (int b = 0; b < blocks.size(); b++) {
byte[] data = blocks.get(b).streamSoundData.getRangeData();
if (st.getSoundFormatId() == 2) { //MP3