Permalink
Browse files

vstream: shut up an invalid compiler warning

We are not in VS_ENCODE mode here, so vs_bit is allowed to be uninitialized.
  • Loading branch information...
1 parent 7e7fc1a commit 197191aad45041dbd267553142aba0c01d7d3cfb Maarten Lankhorst committed Dec 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 vstream/bitstream.c
View
@@ -336,8 +336,9 @@ int vs_search_start(struct bitstream *str) {
}
if (str->type == VS_H261 || str->type == VS_H263) {
int nzbit = (str->type == VS_H261 ? 15 : 16);
+ uint32_t bit = 0;
+
while (1) {
- uint32_t bit;
if (!str->hasbyte && str->bytepos >= str->bytesnum)
return 0;
if (str->zero_bits >= nzbit)

0 comments on commit 197191a

Please sign in to comment.