Mercurial > libavformat.hg
comparison matroska.c @ 1898:924bfc59f12c libavformat
fix a stupid bug in ebml_read_sint()
author | aurel |
---|---|
date | Sun, 11 Mar 2007 22:19:02 +0000 |
parents | abbc781d608a |
children | 1324ae790ee0 |
comparison
equal
deleted
inserted
replaced
1897:abbc781d608a | 1898:924bfc59f12c |
---|---|
605 } | 605 } |
606 if ((*num = get_byte(pb)) & 0x80) { | 606 if ((*num = get_byte(pb)) & 0x80) { |
607 negative = 1; | 607 negative = 1; |
608 *num &= ~0x80; | 608 *num &= ~0x80; |
609 } | 609 } |
610 *num = 0; | |
611 while (n++ < size) | 610 while (n++ < size) |
612 *num = (*num << 8) | get_byte(pb); | 611 *num = (*num << 8) | get_byte(pb); |
613 | 612 |
614 /* make signed */ | 613 /* make signed */ |
615 if (negative) | 614 if (negative) |