summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_hdcd.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2016-09-28 06:25:03 -0500
committerBurt P <pburt0@gmail.com>2016-10-05 12:37:22 -0500
commitde9b23ac1f9d5471458d11954fc12b9ea73502d3 (patch)
tree15ab87a820c2d7f2cd13bfd366b70d2b7053f7ec /libavfilter/af_hdcd.c
parente5bbedff826d18cda9937bcf5c3ef8db8b3578e0 (diff)
downloadffmpeg-streaming-de9b23ac1f9d5471458d11954fc12b9ea73502d3.zip
ffmpeg-streaming-de9b23ac1f9d5471458d11954fc12b9ea73502d3.tar.gz
af_hdcd: add mono as a supported channel layout
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'libavfilter/af_hdcd.c')
-rw-r--r--libavfilter/af_hdcd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 40dba3c..c308da1 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -1710,6 +1710,9 @@ static int query_formats(AVFilterContext *ctx)
};
int ret;
+ ret = ff_add_channel_layout(&layouts, AV_CH_LAYOUT_MONO);
+ if (ret < 0)
+ return ret;
ret = ff_add_channel_layout(&layouts, AV_CH_LAYOUT_STEREO);
if (ret < 0)
return ret;
@@ -1811,7 +1814,7 @@ static int config_input(AVFilterLink *inlink) {
s->cdt_ms, s->state[0].sustain_reset );
if (inlink->channels != 2 && s->process_stereo) {
- av_log(ctx, AV_LOG_WARNING, "process_stereo disabled (channels = %d)", inlink->channels);
+ av_log(ctx, AV_LOG_WARNING, "process_stereo disabled (channels = %d)\n", inlink->channels);
s->process_stereo = 0;
}
av_log(ctx, AV_LOG_VERBOSE, "Process mode: %s\n",
OpenPOWER on IntegriCloud