[FFmpeg-devel] [PATCH] extract bit rate calculation into separate function

Carl Eugen Hoyos cehoyos
Wed Nov 11 11:23:22 CET 2009


Hi!

Robert Kr?ger <krueger <at> signal7.de> writes:

> >> +/**
> >> + * Calculates the bit rate of a stream
> >> + *
> >> + * @ctx AVCodecContext of the stream
> >> + * @return bit rate in bits per second
> >> + */
> >
> > this belongs in a header
> >
> moved to header avformat.h and changed name to av_codec_get_bitrate  
> because that seems to be the naming convention for exposed functions(?)

You certainly cannot have a declaration in libavformat/avformat.h and the code
in libavcodec/utils.c (the different directories are a hint).

Carl Eugen

[...]




More information about the ffmpeg-devel mailing list