[FFmpeg-devel] [PATCH] Enhance documentation for AVCodecContext.sample_rate

Stefano Sabatini stefano.sabatini-lala
Wed May 14 23:17:41 CEST 2008


On date Wednesday 2008-05-14 17:25:55 +0200, Stefano Sabatini encoded:
[...]
> Index: libavcodec/avcodec.h
> ===================================================================
> --- libavcodec/avcodec.h	(revision 13153)
> +++ libavcodec/avcodec.h	(working copy)
> @@ -920,7 +920,12 @@
>                              int y, int type, int height);
>  
>      /* audio only */
> -    int sample_rate; ///< samples per second
> +	/**
> +	 * audio samples per second
> +	 * - encoding: Set by user.
> +	 * - decoding: Set by libavcodec.
> +	 */
> +    int sample_rate;
>      int channels;    ///< number of audio channels
>  
>      /**

I'm not sure anymore about this, maybe in some cases the
sample_rate value is used to help the decoder to detect the correct
sample rate if such an information isn't present in the stream.

Please help to clarify this, otherwise I'll check it myself and I'll
update the patch accordingly.

Regards. 
-- 
FFmpeg = Free and Frightening MultiPurpose EnGine




More information about the ffmpeg-devel mailing list