
1 #define CHECK_NULL(ptr) if (!(ptr)) return -1
2 
3 static int jpc_dec_process_sod(jpc_dec_t *dec, jpc_ms_t *ms)
4 {
5     CHECK_NULL(dec);
6     // ... rest of the function ...
