Mercurial > libavcodec.hg
comparison msmpeg4.c @ 1163:0951691c4225 libavcodec
fixing msmpeg4v2 encoding
| author | michaelni |
|---|---|
| date | Tue, 01 Apr 2003 15:38:01 +0000 |
| parents | 21c85c4ab2f0 |
| children | 0e3c0c4a7b3d |
comparison
equal
deleted
inserted
replaced
| 1162:8c15d82c1893 | 1163:0951691c4225 |
|---|---|
| 437 { | 437 { |
| 438 put_bits(&s->pb, 5, s->avctx->frame_rate / s->avctx->frame_rate_base); //yes 29.97 -> 29 | 438 put_bits(&s->pb, 5, s->avctx->frame_rate / s->avctx->frame_rate_base); //yes 29.97 -> 29 |
| 439 | 439 |
| 440 put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047)); | 440 put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047)); |
| 441 | 441 |
| 442 if(s->msmpeg4_version<3) | 442 if(s->msmpeg4_version>=3) |
| 443 s->flipflop_rounding=0; | |
| 444 else{ | |
| 445 s->flipflop_rounding=1; | |
| 446 put_bits(&s->pb, 1, s->flipflop_rounding); | 443 put_bits(&s->pb, 1, s->flipflop_rounding); |
| 447 } | 444 else |
| 445 assert(s->flipflop_rounding==0); | |
| 448 } | 446 } |
| 449 | 447 |
| 450 #endif //CONFIG_ENCODERS | 448 #endif //CONFIG_ENCODERS |
| 451 | 449 |
| 452 /* predict coded block */ | 450 /* predict coded block */ |
