ogg decoding fix

This commit is contained in:
MihailRis 2024-02-28 15:01:19 +03:00
parent d1b145e7a4
commit 83d6990852

View File

@ -45,7 +45,7 @@ audio::PCM* ogg::load_pcm(const std::filesystem::path& file, bool headerOnly) {
} else if (ret < 0) {
std::cerr << "ogg::load_pcm: " << vorbis_error_message(ret) << std::endl;
} else {
data.insert(data.end(), std::begin(buffer), std::end(buffer));
data.insert(data.end(), std::begin(buffer), std::begin(buffer)+ret);
}
}
}