MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / msmpeg4_encode_ext_header

Function msmpeg4_encode_ext_header

libavcodec/msmpeg4.c:413–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void msmpeg4_encode_ext_header(MpegEncContext * s)
414{
415 put_bits(&s->pb, 5, s->avctx->time_base.den / s->avctx->time_base.num); //yes 29.97 -> 29
416
417 put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047));
418
419 if(s->msmpeg4_version>=3)
420 put_bits(&s->pb, 1, s->flipflop_rounding);
421 else
422 assert(s->flipflop_rounding==0);
423}
424
425#endif //CONFIG_ENCODERS
426

Callers 2

encode_threadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected