[transcode] Remove unused param to open_filter()

This commit is contained in:
ejurgensen 2017-02-26 15:40:37 +01:00
parent 25c1795af2
commit 7c8eba74bb

View File

@ -870,7 +870,7 @@ close_output(struct encode_ctx *ctx)
} }
static int static int
open_filter(struct stream_ctx *out_stream, struct stream_ctx *in_stream, const char *filter_spec) open_filter(struct stream_ctx *out_stream, struct stream_ctx *in_stream)
{ {
AVFilter *buffersrc; AVFilter *buffersrc;
AVFilter *format; AVFilter *format;
@ -1029,16 +1029,14 @@ open_filters(struct encode_ctx *ctx, struct decode_ctx *src_ctx)
if (ctx->settings.encode_audio) if (ctx->settings.encode_audio)
{ {
// anull is a passthrough (dummy) filter for audio ret = open_filter(&ctx->audio_stream, &src_ctx->audio_stream);
ret = open_filter(&ctx->audio_stream, &src_ctx->audio_stream, "anull");
if (ret < 0) if (ret < 0)
goto out_fail; goto out_fail;
} }
if (ctx->settings.encode_video) if (ctx->settings.encode_video)
{ {
// null is a passthrough (dummy) filter for video ret = open_filter(&ctx->video_stream, &src_ctx->video_stream);
ret = open_filter(&ctx->video_stream, &src_ctx->video_stream, "null");
if (ret < 0) if (ret < 0)
goto out_fail; goto out_fail;
} }