summaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-11-17 15:06:35 +0100
committerClément Bœsch <ubitux@gmail.com>2011-11-17 18:30:03 +0100
commiteafa2b600502f5e8b36b99a2737d6b3d3a58441f (patch)
tree092268c2591a8cfd3c53fd8253bbe8e0d1c0c8d4 /ffplay.c
parentd3baced24fcf602f2bceff1f73871303d4011c15 (diff)
downloadffmpeg-streaming-eafa2b600502f5e8b36b99a2737d6b3d3a58441f.zip
ffmpeg-streaming-eafa2b600502f5e8b36b99a2737d6b3d3a58441f.tar.gz
swr: introduce a public function to customize the channel mapping.
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 8022be5..2ce7ea2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2079,7 +2079,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
is->swr_ctx = swr_alloc_set_opts(NULL,
is->audio_tgt_channel_layout, is->audio_tgt_fmt, is->audio_tgt_freq,
dec_channel_layout, dec->sample_fmt, dec->sample_rate,
- NULL, 0, NULL);
+ 0, NULL);
if (!is->swr_ctx || swr_init(is->swr_ctx) < 0) {
fprintf(stderr, "Cannot create sample rate converter for conversion of %d Hz %s %d channels to %d Hz %s %d channels!\n",
dec->sample_rate,
OpenPOWER on IntegriCloud