Warn if ogg sample is not ogg compressed

This commit is contained in:
derselbst 2020-02-01 09:31:17 +01:00
parent dcc9c27acf
commit df58a440f2

View file

@ -2635,6 +2635,11 @@ static int fluid_sffile_read_vorbis(SFData *sf, unsigned int start_byte, unsigne
goto error_exit;
}
if((sfinfo.format & SF_FORMAT_OGG) == 0)
{
FLUID_LOG(FLUID_WARN, "OGG sample is not OGG compressed, this is not officially supported");
}
wav_data = FLUID_ARRAY(short, sfinfo.frames * sfinfo.channels);
if(!wav_data)