Revision a3c22fbc libavcodec/rv10.c

View differences:

libavcodec/rv10.c
388 388
//            return -1;
389 389
        }
390 390
        seq= get_bits(&s->gb, 15);
391
        if (s->avctx->sub_id == 0x20201002 && get_bits(&s->gb, 1)){
392
            av_log(s->avctx, AV_LOG_ERROR, "unknown bit4 set\n");
393
//            return -1;
394
        }
391 395
        mb_pos= get_bits(&s->gb, av_log2(s->mb_num-1)+1);
392 396
        s->mb_x= mb_pos % s->mb_width;
393 397
        s->mb_y= mb_pos / s->mb_width;
......
395 399
        seq= get_bits(&s->gb, 8)*128;
396 400
        mb_pos= ff_h263_decode_mba(s);
397 401
    }
398
//printf("%d\n", seq);
402
//av_log(s->avctx, AV_LOG_DEBUG, "%d\n", seq);
399 403
    seq |= s->time &~0x7FFF;
400 404
    if(seq - s->time >  0x4000) seq -= 0x8000;
401 405
    if(seq - s->time < -0x4000) seq += 0x8000;
......
414 418
        }
415 419
    }
416 420
//    printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time);
417

  
421
/*for(i=0; i<32; i++){
422
    av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->gb));
423
}
424
av_log(s->avctx, AV_LOG_DEBUG, "\n");*/
418 425
    s->no_rounding= get_bits1(&s->gb);
419 426
    
420 427
    s->f_code = 1;
......
478 485
        s->low_delay=1;
479 486
        break;
480 487
    case 0x20200002:
488
    case 0x20201002:
481 489
    case 0x30202002:
482 490
    case 0x30203002:
483 491
        s->low_delay=0;

Also available in: Unified diff