--- trunk/xvidcore/src/bitstream/bitstream.c 2010/12/28 19:19:57 1928 +++ trunk/xvidcore/src/bitstream/bitstream.c 2019/01/17 14:14:02 2167 @@ -20,7 +20,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: bitstream.c,v 1.61 2010-12-28 19:19:43 Isibaar Exp $ + * $Id$ * ****************************************************************************/ @@ -129,8 +129,7 @@ } } - mbnum = BitstreamGetBits(bs, mbnum_bits); /* macroblock_number */ - DPRINTF(XVID_DEBUG_HEADER, "mbnum %i\n", mbnum); + mbnum = (mbnum_bits == 0) ? 0 : BitstreamGetBits(bs, mbnum_bits); /* macroblock_number */ if (dec->shape != VIDOBJLAY_SHAPE_BINARY_ONLY) {