From e60e0761f5d50206dc121703a7ead2619fb5bedc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 12 Dec 2014 06:10:23 -0800 Subject: [PATCH] Use the default channel layout in alffplay if one isn't specified --- examples/alffplay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/alffplay.c b/examples/alffplay.c index 25128d68..17f6d3bc 100644 --- a/examples/alffplay.c +++ b/examples/alffplay.c @@ -684,7 +684,9 @@ static int audio_thread(void *userdata) movState->audio.dst_ch_layout, movState->audio.dst_sample_fmt, movState->audio.st->codec->sample_rate, - movState->audio.st->codec->channel_layout, + movState->audio.st->codec->channel_layout ? + movState->audio.st->codec->channel_layout : + av_get_default_channel_layout(movState->audio.st->codec->channels), movState->audio.st->codec->sample_fmt, movState->audio.st->codec->sample_rate, 0, NULL -- 2.11.4.GIT