From: Andre Noll Date: Thu, 17 Apr 2014 23:53:17 +0000 (+0000) Subject: aacdec: Make "initialized" a boolean. X-Git-Tag: v0.6.0~7^2~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=792936cec17542777826e5fce4cfe520a984bba2;hp=3013ef1f9e2dcd1426041837daf86f3d401acd94 aacdec: Make "initialized" a boolean. It improves code readability, they say. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index 5c1ea6d3..c886f9d8 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -35,7 +35,7 @@ struct private_aacdec_data { /** 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 */ @@ -124,7 +124,7 @@ next_buffer: 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;