mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavfi: add an accessor for ref->audio->channels.
This commit is contained in:
parent
238edd2fe3
commit
34de47aa35
4 changed files with 17 additions and 3 deletions
|
|
@ -128,7 +128,7 @@ typedef struct AVFilterBufferRefAudioProps {
|
|||
uint64_t channel_layout; ///< channel layout of audio buffer
|
||||
int nb_samples; ///< number of audio samples per channel
|
||||
int sample_rate; ///< audio buffer sample rate
|
||||
int channels; ///< number of channels
|
||||
int channels; ///< number of channels (do not access directly)
|
||||
} AVFilterBufferRefAudioProps;
|
||||
|
||||
/**
|
||||
|
|
@ -233,6 +233,11 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref);
|
|||
*/
|
||||
void avfilter_unref_bufferp(AVFilterBufferRef **ref);
|
||||
|
||||
/**
|
||||
* Get the number of channels of a buffer reference.
|
||||
*/
|
||||
int avfilter_ref_get_channels(AVFilterBufferRef *ref);
|
||||
|
||||
#if FF_API_AVFILTERPAD_PUBLIC
|
||||
/**
|
||||
* A filter pad used for either input or output.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue