[FFmpeg-devel] [PATCH 02/13] lavc: add a sample_rate field to AVFrame.
Michael Niedermayer
michaelni at gmx.at
Sat Apr 28 17:50:20 CEST 2012
On Sat, Apr 28, 2012 at 04:31:44PM +0200, Nicolas George wrote:
> The field is filled with the codec context information.
>
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> libavcodec/avcodec.h | 7 +++++++
> libavcodec/utils.c | 2 ++
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index a19e4ac..7b81203 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1265,6 +1265,13 @@ typedef struct AVFrame {
> */
> int64_t channel_layout;
>
> + /**
> + * sample rate of the audio frame
> + * - encoding: unused
> + * - decoding: read by user.
> + */
> + int sample_rate;
same comments as channel_layout otherwise LGTM
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120428/0ae29e07/attachment.asc>
More information about the ffmpeg-devel
mailing list