From 792936cec17542777826e5fce4cfe520a984bba2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 17 Apr 2014 23:53:17 +0000 Subject: [PATCH] aacdec: Make "initialized" a boolean. It improves code readability, they say. --- aacdec_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2