Mercurial > libavcodec.hg
comparison msmpeg4.c @ 1126:77ccf7fe3bd0 libavcodec
per context frame_rate_base, this should finally fix frame_rate related av sync issues
author | michaelni |
---|---|
date | Wed, 12 Mar 2003 15:16:19 +0000 |
parents | 1e39f273ecd6 |
children | 21c85c4ab2f0 |
comparison
equal
deleted
inserted
replaced
1125:0980ae063f4e | 1126:77ccf7fe3bd0 |
---|---|
433 #endif | 433 #endif |
434 } | 434 } |
435 | 435 |
436 void msmpeg4_encode_ext_header(MpegEncContext * s) | 436 void msmpeg4_encode_ext_header(MpegEncContext * s) |
437 { | 437 { |
438 put_bits(&s->pb, 5, s->frame_rate / 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; | 443 s->flipflop_rounding=0; |