summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmusepack/internal.h')
-rw-r--r--apps/codecs/libmusepack/internal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs/libmusepack/internal.h b/apps/codecs/libmusepack/internal.h
index 0f29060a7d..3f8b29f9f5 100644
--- a/apps/codecs/libmusepack/internal.h
+++ b/apps/codecs/libmusepack/internal.h
@@ -88,12 +88,12 @@ struct mpc_demux_t {
88/** 88/**
89 * checks if a block key is valid 89 * checks if a block key is valid
90 * @param key the two caracters key to check 90 * @param key the two caracters key to check
91 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else 91 * @return MPC_STATUS_FAIL if the key is invalid, MPC_STATUS_OK else
92 */ 92 */
93static mpc_inline mpc_status mpc_check_key(char * key) 93static mpc_inline mpc_status mpc_check_key(char * key)
94{ 94{
95 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90) 95 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90)
96 return MPC_STATUS_INVALIDSV; 96 return MPC_STATUS_FAIL;
97 return MPC_STATUS_OK; 97 return MPC_STATUS_OK;
98} 98}
99 99
@@ -114,6 +114,9 @@ void streaminfo_gain(mpc_streaminfo* si, const mpc_bits_reader * r_in);
114// mpc_decoder.c 114// mpc_decoder.c
115void mpc_decoder_reset_scf(mpc_decoder * d, int value); 115void mpc_decoder_reset_scf(mpc_decoder * d, int value);
116 116
117#define MPC_IS_FAILURE(X) ((int)(X) < (int)MPC_STATUS_OK)
118#define MPC_AUTO_FAIL(X) { mpc_status s = (X); if (MPC_IS_FAILURE(s)) return s; }
119
117#ifdef __cplusplus 120#ifdef __cplusplus
118} 121}
119#endif 122#endif