lavc: add sample rate and channel layout to AVFrame.

Rationale is the same as for video width/height etc.
This commit is contained in:
Anton Khirnov
2012-05-04 19:12:31 +02:00
parent 37f4a976b3
commit 828bd088f3
4 changed files with 24 additions and 1 deletions

View File

@@ -1207,6 +1207,22 @@ typedef struct AVFrame {
* - decoding: Set by libavcodec.
*/
uint8_t motion_subsample_log2;
/**
* Sample rate of the audio data.
*
* - encoding: unused
* - decoding: set by get_buffer()
*/
int sample_rate;
/**
* Channel layout of the audio data.
*
* - encoding: unused
* - decoding: set by get_buffer()
*/
uint64_t channel_layout;
} AVFrame;
struct AVCodecInternal;