It improves code readability, they say.
/** the return value of aac_open */
NeAACDecHandle handle;
/** whether this instance of the aac decoder is already initialized */
- int initialized;
+ bool initialized;
/** number of times the decoder returned an error */
unsigned error_count;
/** number of bytes already consumed from the imput stream */
padd->channels = channels;
PARA_INFO_LOG("rate: %u, channels: %u\n",
padd->sample_rate, padd->channels);
- padd->initialized = 1;
+ padd->initialized = true;
}
if (consumed >= len)
goto success;