ref: 50ed51d544e2d5100d45eabd2d92d50137eb13c7
parent: 081e457b5a3a85275c9d0e7f867bbee68c0baed6
author: Matthias Geier <[email protected]>
date: Thu Aug 20 06:58:26 EDT 2020
TST: add one test for mp3dec_ex_read_frame()
--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -534,6 +534,8 @@
ASSERT(0 == ret); /* invalid param case, no decoder structure to report an error */
ret = mp3dec_ex_read(&dec, 0, 10);
ASSERT(0 == ret && MP3D_E_PARAM == dec.last_error); /* invalid param case */
+ ret = mp3dec_ex_read_frame(&dec, 0, 10);
+ ASSERT(0 == ret && MP3D_E_PARAM == dec.last_error); /* invalid param case */
ret = mp3dec_load(0, input_file_name, &finfo, 0, 0);
ASSERT(MP3D_E_PARAM == ret);