diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-05-12 17:38:47 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-05-16 13:16:05 +0200 |
commit | 4d4098da009c8340997b8d1abedbf2062e4aa991 (patch) | |
tree | 2a2398b82a55b8a5feeaa87ece2fefbd5c83036d /doc/examples | |
parent | 183596fa081cc283c61ba3c0bb8386f9139f761f (diff) | |
download | ffmpeg-4d4098da009c8340997b8d1abedbf2062e4aa991.tar.gz |
lavfi: drop planar/packed negotiation support
The planar/packed switch and the packing_formats list is no longer
required, since the planar/packed information is now stored in the sample
format enum.
This is technically a major API break, possibly it should be not too
painful as we marked the audio filtering API as unstable.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/filtering_audio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index e8e6259635..2207b458fe 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -88,7 +88,6 @@ static int init_filters(const char *filters_descr) AVFilterInOut *outputs = avfilter_inout_alloc(); AVFilterInOut *inputs = avfilter_inout_alloc(); const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 }; - const int packing_fmts[] = { AVFILTER_PACKED, -1 }; const int64_t *chlayouts = avfilter_all_channel_layouts; AVABufferSinkParams *abuffersink_params; const AVFilterLink *outlink; @@ -98,7 +97,7 @@ static int init_filters(const char *filters_descr) /* buffer audio source: the decoded frames from the decoder will be inserted here. */ if (!dec_ctx->channel_layout) dec_ctx->channel_layout = av_get_default_channel_layout(dec_ctx->channels); - snprintf(args, sizeof(args), "%d:%d:0x%"PRIx64":packed", + snprintf(args, sizeof(args), "%d:%d:0x%"PRIx64, dec_ctx->sample_rate, dec_ctx->sample_fmt, dec_ctx->channel_layout); ret = avfilter_graph_create_filter(&buffersrc_ctx, abuffersrc, "in", args, NULL, filter_graph); @@ -111,7 +110,6 @@ static int init_filters(const char *filters_descr) abuffersink_params = av_abuffersink_params_alloc(); abuffersink_params->sample_fmts = sample_fmts; abuffersink_params->channel_layouts = chlayouts; - abuffersink_params->packing_fmts = packing_fmts; ret = avfilter_graph_create_filter(&buffersink_ctx, abuffersink, "out", NULL, abuffersink_params, filter_graph); av_free(abuffersink_params); |