Skip format_check_test for asymmetric MPEG Layer I/II

libmpg123 supports decoding MPEG Layers I, II, and III, but we only have
encode support for Layer III. Skip checks for I and II as they don't
have write support.
This commit is contained in:
Arthur Taylor 2021-01-23 14:56:09 -08:00
parent 64ce116687
commit f401000fd0

View File

@ -121,6 +121,11 @@ format_combo_test (void)
__LINE__
) ;
/* Only have decode, not encode support for MPEG Layer I and II */
if (subtype_fmt_info.format == SF_FORMAT_MPEG_LAYER_I ||
subtype_fmt_info.format == SF_FORMAT_MPEG_LAYER_II)
continue ;
snprintf (filename, sizeof (filename), "format-check.%s", major_fmt_info.extension) ;
sndfile = sf_open (filename, SFM_WRITE, &info) ;