diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-05-16 15:28:43 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-05-16 15:28:43 +0200 |
commit | 986d2f6ec04a55678335cb3d7f2c2de84594d760 (patch) | |
tree | 0f7ac8aff5c1bd0d1499e169ea28a36f96c23751 /libavfilter/asrc_aevalsrc.c | |
parent | e109e392ba8658ba09895659c7a381187f14e3dc (diff) | |
download | ffmpeg-986d2f6ec04a55678335cb3d7f2c2de84594d760.tar.gz |
lavfi/aevalsrc: fix sample rate negotiation, after the last merge
Fix crash.
Diffstat (limited to 'libavfilter/asrc_aevalsrc.c')
-rw-r--r-- | libavfilter/asrc_aevalsrc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c index 2078d7f5e2..db6c205c8c 100644 --- a/libavfilter/asrc_aevalsrc.c +++ b/libavfilter/asrc_aevalsrc.c @@ -187,9 +187,11 @@ static int query_formats(AVFilterContext *ctx) EvalContext *eval = ctx->priv; enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_NONE }; int64_t chlayouts[] = { eval->chlayout, -1 }; + int sample_rates[] = { eval->sample_rate, -1 }; avfilter_set_common_sample_formats (ctx, avfilter_make_format_list(sample_fmts)); ff_set_common_channel_layouts(ctx, avfilter_make_format64_list(chlayouts)); + ff_set_common_samplerates(ctx, avfilter_make_format_list(sample_rates)); return 0; } |