Mercurial > libavcodec.hg
diff mpegvideo.c @ 1992:938e47c809b0 libavcodec
intra_dc_precission>0 encoding support
author | michael |
---|---|
date | Fri, 30 Apr 2004 13:44:29 +0000 |
parents | fa09319b80af |
children | 8d3540dddd1b |
line wrap: on
line diff
--- a/mpegvideo.c Fri Apr 30 01:35:45 2004 +0000 +++ b/mpegvideo.c Fri Apr 30 13:44:29 2004 +0000 @@ -890,6 +890,7 @@ s->quarter_sample= (avctx->flags & CODEC_FLAG_QPEL)!=0; s->mpeg_quant= avctx->mpeg_quant; s->rtp_mode= !!avctx->rtp_payload_size; + s->intra_dc_precision= avctx->intra_dc_precision; if (s->gop_size <= 1) { s->intra_only = 1; @@ -4009,7 +4010,7 @@ for(i=0; i<3; i++){ /* init last dc values */ /* note: quant matrix value (8) is implied here */ - s->last_dc[i] = 128; + s->last_dc[i] = 128 << s->intra_dc_precision; s->current_picture_ptr->error[i] = 0; }