Mercurial > libavcodec.hg
diff wmv2.c @ 1163:0951691c4225 libavcodec
fixing msmpeg4v2 encoding
author | michaelni |
---|---|
date | Tue, 01 Apr 2003 15:38:01 +0000 |
parents | 21c85c4ab2f0 |
children | fea03d2c4946 |
line wrap: on
line diff
--- a/wmv2.c Mon Mar 31 11:13:14 2003 +0000 +++ b/wmv2.c Tue Apr 01 15:38:01 2003 +0000 @@ -131,7 +131,10 @@ w->abt_type=0; w->j_type=0; + assert(s->flipflop_rounding); + if (s->pict_type == I_TYPE) { + assert(s->no_rounding==1); if(w->j_type_bit) put_bits(&s->pb, 1, w->j_type); if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table); @@ -144,7 +147,6 @@ put_bits(&s->pb, 1, s->dc_table_index); s->inter_intra_pred= 0; - s->no_rounding = 1; }else{ int cbp_index; @@ -181,7 +183,6 @@ put_bits(&s->pb, 1, s->mv_table_index); s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE); - s->no_rounding ^= 1; } s->esc3_level_length= 0; s->esc3_run_length= 0;