diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 07:29:42 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 07:29:42 +0000 |
commit | 7a9f663d76d5a47ef9e31c8d9e30f7aef8d689e9 (patch) | |
tree | 21b82ee17a19309075faba3e53b142e82f766600 | |
parent | 57c86b0b3fc5ad171fdf18a6e05d98fe013990f6 (diff) |
fixed result of bitstream_in::peek(0) (nw)
-rw-r--r-- | src/lib/util/bitstream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util/bitstream.h b/src/lib/util/bitstream.h index 1c1859199d7..85c2e067c2f 100644 --- a/src/lib/util/bitstream.h +++ b/src/lib/util/bitstream.h @@ -126,6 +126,9 @@ inline bitstream_in::bitstream_in(const void *src, UINT32 srclength) inline UINT32 bitstream_in::peek(int numbits) { + if (numbits == 0) + return 0; + // fetch data if we need more if (numbits > m_bits) { |