mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
lavc: add sample rate and channel layout to AVFrame.
Rationale is the same as for video width/height etc.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user