Mercurial > libavcodec.hg
comparison msmpeg4.c @ 847:f3c369b8ddca libavcodec
reversing header game
MIN/MAX -> FFMIN/FFMAX
author | michaelni |
---|---|
date | Sun, 10 Nov 2002 11:46:59 +0000 |
parents | baa66649df35 |
children | 22ee74da2cd3 |
comparison
equal
deleted
inserted
replaced
846:ade627a74709 | 847:f3c369b8ddca |
---|---|
423 | 423 |
424 void msmpeg4_encode_ext_header(MpegEncContext * s) | 424 void msmpeg4_encode_ext_header(MpegEncContext * s) |
425 { | 425 { |
426 put_bits(&s->pb, 5, s->frame_rate / FRAME_RATE_BASE); //yes 29.97 -> 29 | 426 put_bits(&s->pb, 5, s->frame_rate / FRAME_RATE_BASE); //yes 29.97 -> 29 |
427 | 427 |
428 put_bits(&s->pb, 11, MIN(s->bit_rate/1024, 2047)); | 428 put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047)); |
429 | 429 |
430 if(s->msmpeg4_version<3) | 430 if(s->msmpeg4_version<3) |
431 s->flipflop_rounding=0; | 431 s->flipflop_rounding=0; |
432 else{ | 432 else{ |
433 s->flipflop_rounding=1; | 433 s->flipflop_rounding=1; |