Skip to content

Infinite loop while converting an ogg #16

Open
@Faark

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions