Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop while converting an ogg #16

Open
Faark opened this issue Feb 3, 2022 · 0 comments
Open

Infinite loop while converting an ogg #16

Faark opened this issue Feb 3, 2022 · 0 comments

Comments

@Faark
Copy link

Faark commented Feb 3, 2022

Hi,
was converting a bunch of oggs to mp3 and my tool keep freezing one a specific one. Example project with the audio file included. There seems to be an infinite loop on the reader side, so i hope this is the right place to report it.

Code used to convert:

            using (var outputData = new System.IO.MemoryStream())
            using (var mp3FileData = System.IO.File.OpenRead("yt1s.com-Bruh-Sound-Effect-2.egg.ogg"))
            using (var vorbisStream = new NAudio.Vorbis.VorbisWaveReader(mp3FileData))
            using (var wtr = new NAudio.Lame.LameMP3FileWriter(outputData, vorbisStream.WaveFormat,
                       new NAudio.Lame.LameConfig()
                       {
                           Preset = NAudio.Lame.LAMEPreset.ABR_96
                       }))
            {
                vorbisStream.CopyTo(wtr);
            }

using NAudio.Vorbis 1.5.0 and NAudio.Lame 2.0.1
tested on netcore 3.1 and net 6
NAudioVobisFreez.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant