mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
avfilter/f_reverse: Don't use redundant query_formats function
Said function did exactly what ff_default_query_formats() does for audio; so just remove it, so that ff_default_query_formats() will be called. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
c1f7e62810
commit
3a82bb8128
@ -145,19 +145,6 @@ const AVFilter ff_vf_reverse = {
|
|||||||
|
|
||||||
#if CONFIG_AREVERSE_FILTER
|
#if CONFIG_AREVERSE_FILTER
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
int ret = ff_set_common_all_channel_counts(ctx);
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
ret = ff_set_common_formats(ctx, ff_all_formats(AVMEDIA_TYPE_AUDIO));
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return ff_set_common_all_samplerates(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void reverse_samples_planar(AVFrame *out)
|
static void reverse_samples_planar(AVFrame *out)
|
||||||
{
|
{
|
||||||
for (int p = 0; p < out->channels; p++) {
|
for (int p = 0; p < out->channels; p++) {
|
||||||
@ -283,7 +270,6 @@ static const AVFilterPad areverse_outputs[] = {
|
|||||||
const AVFilter ff_af_areverse = {
|
const AVFilter ff_af_areverse = {
|
||||||
.name = "areverse",
|
.name = "areverse",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Reverse an audio clip."),
|
.description = NULL_IF_CONFIG_SMALL("Reverse an audio clip."),
|
||||||
.query_formats = query_formats,
|
|
||||||
.priv_size = sizeof(ReverseContext),
|
.priv_size = sizeof(ReverseContext),
|
||||||
.init = init,
|
.init = init,
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user