1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

af_hdcd: allow all HDCD sample rates

The PM Model Two could output HDCD-encoded audio in CD and all
DVD-Audio sample rates. (44100, 48000, 88200, 96000, 176400, and
192000 Hz)

Signed-off-by: Burt P <pburt0@gmail.com>
This commit is contained in:
Burt P 2016-09-07 10:48:03 -05:00
parent de9b23ac1f
commit 7e46bb80ef

View File

@ -1693,9 +1693,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static int query_formats(AVFilterContext *ctx)
{
static const int sample_rates[] = {
44100, 48000,
88200, 96000,
176400, 192000,
-1
};
AVFilterFormats *in_formats;
AVFilterFormats *out_formats;
AVFilterFormats *sample_rates = NULL;
AVFilterChannelLayouts *layouts = NULL;
AVFilterLink *inlink = ctx->inputs[0];
AVFilterLink *outlink = ctx->outputs[0];
@ -1733,11 +1738,8 @@ static int query_formats(AVFilterContext *ctx)
if (ret < 0)
return ret;
ret = ff_add_format(&sample_rates, 44100);
if (ret < 0)
return AVERROR(ENOMEM);
return ff_set_common_samplerates(ctx, sample_rates);
return
ff_set_common_samplerates(ctx, ff_make_format_list(sample_rates) );
}
static av_cold void uninit(AVFilterContext *ctx)