summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_volumedetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_volumedetect.c')
-rw-r--r--libavfilter/af_volumedetect.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index 39265c0..79d992e 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -49,12 +49,12 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
-static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *samples)
+static int filter_frame(AVFilterLink *inlink, AVFrame *samples)
{
AVFilterContext *ctx = inlink->dst;
VolDetectContext *vd = ctx->priv;
- int64_t layout = samples->audio->channel_layout;
- int nb_samples = samples->audio->nb_samples;
+ int64_t layout = samples->channel_layout;
+ int nb_samples = samples->nb_samples;
int nb_channels = av_get_channel_layout_nb_channels(layout);
int nb_planes = nb_channels;
int plane, i;
@@ -137,7 +137,6 @@ static const AVFilterPad volumedetect_inputs[] = {
.type = AVMEDIA_TYPE_AUDIO,
.get_audio_buffer = ff_null_get_audio_buffer,
.filter_frame = filter_frame,
- .min_perms = AV_PERM_READ,
},
{ NULL }
};
OpenPOWER on IntegriCloud