mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
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:
parent
64ce116687
commit
f401000fd0
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user