comparison rv10.c @ 9696:d3b8845e7f55 libavcodec

Fix lowres with rv20. Fixes issue1102.
author michael
date Sat, 23 May 2009 22:59:35 +0000
parents f4583123072a
children 99c39bb5c525
comparison
equal deleted inserted replaced
9695:f1f5e78cf0aa 9696:d3b8845e7f55
508 s->h263_aic= s->pict_type == FF_I_TYPE; 508 s->h263_aic= s->pict_type == FF_I_TYPE;
509 // s->alt_inter_vlc=1; 509 // s->alt_inter_vlc=1;
510 // s->obmc=1; 510 // s->obmc=1;
511 // s->umvplus=1; 511 // s->umvplus=1;
512 s->modified_quant=1; 512 s->modified_quant=1;
513 if(!s->avctx->lowres)
513 s->loop_filter=1; 514 s->loop_filter=1;
514 515
515 if(s->avctx->debug & FF_DEBUG_PICT_INFO){ 516 if(s->avctx->debug & FF_DEBUG_PICT_INFO){
516 av_log(s->avctx, AV_LOG_INFO, "num:%5d x:%2d y:%2d type:%d qscale:%2d rnd:%d\n", 517 av_log(s->avctx, AV_LOG_INFO, "num:%5d x:%2d y:%2d type:%d qscale:%2d rnd:%d\n",
517 seq, s->mb_x, s->mb_y, s->pict_type, s->qscale, s->no_rounding); 518 seq, s->mb_x, s->mb_y, s->pict_type, s->qscale, s->no_rounding);
536 537
537 s->avctx= avctx; 538 s->avctx= avctx;
538 s->out_format = FMT_H263; 539 s->out_format = FMT_H263;
539 s->codec_id= avctx->codec_id; 540 s->codec_id= avctx->codec_id;
540 541
541 s->width = avctx->width; 542 s->width = avctx->coded_width;
542 s->height = avctx->height; 543 s->height = avctx->coded_height;
543 544
544 s->h263_long_vectors= ((uint8_t*)avctx->extradata)[3] & 1; 545 s->h263_long_vectors= ((uint8_t*)avctx->extradata)[3] & 1;
545 avctx->sub_id= AV_RB32((uint8_t*)avctx->extradata + 4); 546 avctx->sub_id= AV_RB32((uint8_t*)avctx->extradata + 4);
546 547
547 if (avctx->sub_id == 0x10000000) { 548 if (avctx->sub_id == 0x10000000) {