Originally committed as revision 312 to svn://svn.ffmpeg.org/ffmpeg/trunk
if (s->pict_type != I_TYPE &&
s->pict_type != P_TYPE)
return -1;
- skip_bits(&s->gb, 7);
+ skip_bits(&s->gb, 2);
+ s->no_rounding = get_bits1(&s->gb);
+ //fprintf(stderr, "\nRTYPE: %d", s->no_rounding);
+ skip_bits(&s->gb, 4);
/* Get the picture dimensions */
if (ufep) {
else
block[0] = block[0] * s->c_dc_scale;
}
- for(i=1; i<8; i++) {
- level = block[i];
- if (level) {
- if (level < 0) {
- level = level * qmul - qadd;
- } else {
- level = level * qmul + qadd;
- }
- block[i] = level;
- }
- }
+ for(i=1; i<8; i++) {
+ level = block[i];
+ if (level) {
+ if (level < 0) {
+ level = level * qmul - qadd;
+ } else {
+ level = level * qmul + qadd;
+ }
+ block[i] = level;
+ }
+ }
nCoeffs=64;
} else {
i = 0;