From d32cab09aab23e002bd93dddb898c8328998e5b3 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 11 Nov 2016 18:18:33 +0100 Subject: [PATCH] throw an exception in CMemoryBitstream::SetBitPosition so we can catch it and not crash. --- MP42/muxer/mbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP42/muxer/mbs.h b/MP42/muxer/mbs.h index 5713ef1..bcb743f 100644 --- a/MP42/muxer/mbs.h +++ b/MP42/muxer/mbs.h @@ -68,7 +68,7 @@ public: void SetBitPosition(u_int32_t bitPos) { if (bitPos > m_numBits) { - throw; + throw EIO; } m_bitPos = bitPos; }