fixed result of bitstream_in::peek(0) (nw)

This commit is contained in:
Oliver Stöneberg 2013-01-09 07:29:42 +00:00
parent 57c86b0b3f
commit 7a9f663d76

View File

@ -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)
{