aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/audio.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-12-02 16:39:41 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-12-20 13:03:41 +0100
commit34de47aa35a39ddcf085b28f7c99f8de8f6c3c9c (patch)
tree6fa12b45581760fcfea8c9b6504fff00cdd2963d /libavfilter/audio.c
parent238edd2fe33da8281b3774196c3de503ea64b745 (diff)
downloadffmpeg-34de47aa35a39ddcf085b28f7c99f8de8f6c3c9c.tar.gz
lavfi: add an accessor for ref->audio->channels.
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r--libavfilter/audio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 565f2e264c..3564896534 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -27,6 +27,11 @@
#include "avfilter.h"
#include "internal.h"
+int avfilter_ref_get_channels(AVFilterBufferRef *ref)
+{
+ return ref->audio ? ref->audio->channels : 0;
+}
+
AVFilterBufferRef *ff_null_get_audio_buffer(AVFilterLink *link, int perms,
int nb_samples)
{