aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-08-16 22:26:16 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-08-18 22:22:49 -0400
commit6495c4c68713f352b164f47501d274d8da2edaf5 (patch)
tree26b86320c854fbf46c0a5c51e082b4533c204946
parentc1507db61760483e45ca9d512238181f333a2281 (diff)
downloadffmpeg-6495c4c68713f352b164f47501d274d8da2edaf5.tar.gz
lavfi: fix compilation with FF_API_OLD_FILTER_OPTS=0.
-rw-r--r--ffmpeg_filter.c2
-rw-r--r--libavfilter/avfilter.c3
-rw-r--r--libavfilter/vf_aspect.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index 6a59f0547b..10b2f5f722 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -544,7 +544,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
av_get_default_channel_layout(ost->audio_channels_mapped));
for (i = 0; i < ost->audio_channels_mapped; i++)
if (ost->audio_channels_map[i] != -1)
- av_bprintf(&pan_buf, ":c%d=c%d", i, ost->audio_channels_map[i]);
+ av_bprintf(&pan_buf, "|c%d=c%d", i, ost->audio_channels_map[i]);
AUTO_INSERT_FILTER("-map_channel", "pan", pan_buf.str);
av_bprint_finalize(&pan_buf, NULL);
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 6475f29f26..4d833f0544 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -976,8 +976,9 @@ int avfilter_init_str(AVFilterContext *filter, const char *args)
if (ret < 0)
goto fail;
+ } else
#endif
- } else {
+ {
ret = process_options(filter, &options, args);
if (ret < 0)
goto fail;
diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 84dbee95d5..bf30824851 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -69,10 +69,10 @@ typedef struct AspectContext {
static av_cold int init(AVFilterContext *ctx)
{
+#if FF_API_OLD_FILTER_OPTS
AspectContext *s = ctx->priv;
int ret;
-#if FF_API_OLD_FILTER_OPTS
if (s->ratio_expr && s->aspect_den > 0) {
double num;
av_log(ctx, AV_LOG_WARNING,