From 10557b02050d782826e47fae9f4fb0f23ac4f7c5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 6 Sep 2005 16:30:41 +0000 Subject: [PATCH] Make the compiler happy (and count == 0 an error). --- src/common/mpeg4_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mpeg4_common.cpp b/src/common/mpeg4_common.cpp index a2257b020..699635c30 100644 --- a/src/common/mpeg4_common.cpp +++ b/src/common/mpeg4_common.cpp @@ -342,7 +342,7 @@ static int bitcopy(bit_reader_t &r, bit_writer_t &w, int count) { - int bit, v = 0; + int bit = -1, v = 0; while (count-- && (bit = r.bit()) >= 0) w.bit(bit), v = (v << 1) | bit;