]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
aacdec: Make "initialized" a boolean.
authorAndre Noll <maan@systemlinux.org>
Thu, 17 Apr 2014 23:53:17 +0000 (23:53 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
It improves code readability, they say.

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;