19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: mbcoding.c,v 1.52.2.1 2007-06-27 18:57:42 Isibaar Exp $ |
* $Id: mbcoding.c,v 1.52.2.2 2007-06-28 15:00:11 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
1051 |
return (level << 20) >> 20; |
return (level << 20) >> 20; |
1052 |
|
|
1053 |
error: |
error: |
1054 |
*run = VLC_ERROR; |
*run = 64; |
1055 |
return 0; |
return 0; |
1056 |
} |
} |
1057 |
|
|
1068 |
do { |
do { |
1069 |
level = get_coeff(bs, &run, &last, 1, 0); |
level = get_coeff(bs, &run, &last, 1, 0); |
1070 |
coeff += run; |
coeff += run; |
1071 |
if ((run|coeff)&~63) { |
if (coeff & ~63) { |
1072 |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
1073 |
break; |
break; |
1074 |
} |
} |
1109 |
do { |
do { |
1110 |
level = get_coeff(bs, &run, &last, 0, 0); |
level = get_coeff(bs, &run, &last, 0, 0); |
1111 |
p += run; |
p += run; |
1112 |
if ((run|p)&~63) { |
if (p & ~63) { |
1113 |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
1114 |
break; |
break; |
1115 |
} |
} |
1144 |
do { |
do { |
1145 |
level = get_coeff(bs, &run, &last, 0, 0); |
level = get_coeff(bs, &run, &last, 0, 0); |
1146 |
p += run; |
p += run; |
1147 |
if ((run|p)&~63) { |
if (p & ~63) { |
1148 |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index"); |
1149 |
break; |
break; |
1150 |
} |
} |