[FFmpeg-devel] [PATCH] make av_get_bit_rate part of public API
Stefano Sabatini
stefano.sabatini-lala
Wed Nov 25 01:56:59 CET 2009
On date Saturday 2009-11-21 15:10:38 +0100, Robert Kr?ger encoded:
> Hi,
>
> this patch adds a prototype for av_get_bit_rate (implemented in
> libavcodec/utils.c) to avcodec.h.
>
> Regards,
>
> Robert
>
> Index: libavcodec/avcodec.h
> ===================================================================
> --- libavcodec/avcodec.h (revision 20569)
> +++ libavcodec/avcodec.h (working copy)
> @@ -30,7 +30,7 @@
> #include "libavutil/avutil.h"
>
> #define LIBAVCODEC_VERSION_MAJOR 52
> -#define LIBAVCODEC_VERSION_MINOR 41
> +#define LIBAVCODEC_VERSION_MINOR 42
> #define LIBAVCODEC_VERSION_MICRO 0
>
> #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
> @@ -3455,6 +3455,15 @@
> */
> int av_get_bits_per_sample_format(enum SampleFormat sample_fmt);
>
> +/**
> + * Calculates the bit rate of a stream.
> + *
> + * @param ctx AVCodecContext of the stream
> + * @return Bit rate in bits per second or 0 if it could not be determined
> + */
> +int av_get_bit_rate(AVCodecContext *ctx);
Maybe:
avcodec_get_bit_rate()
since the bit rate is associated to a codec context.
Regards.
--
FFmpeg = Foolish and Funny Mystic Pacific Erotic Gangster
More information about the ffmpeg-devel
mailing list