aacdec: Make "initialized" a boolean.
[paraslash.git] / aacdec_filter.c
index 5c1ea6d395347810ab9216707fd36aaf1b78a365..c886f9d82b177012761b757c0f73c55db44e001e 100644 (file)
@@ -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;