From 64a216c54142bde7188b690776c0a5decc0cef94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 13 Dec 2007 19:29:35 +0100 Subject: If the number of channels is not in the known cases, return a failure. (transplanted from f3d84191da5d930ac90193bbdc0ca5d7c43b8302) --HG-- extra : transplant_source : D%837c_%7D%89%F0%E3%2B%7C%96%85IM9%250D%ED --- src/libfaad/xine_faad_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfaad/xine_faad_decoder.c b/src/libfaad/xine_faad_decoder.c index 11a5c5798..934140a32 100644 --- a/src/libfaad/xine_faad_decoder.c +++ b/src/libfaad/xine_faad_decoder.c @@ -194,6 +194,8 @@ static int faad_open_output( faad_decoder_t *this ) { case 2: this->ao_cap_mode=AO_CAP_MODE_STEREO; break; + default: + return 0; } this->output_open = (this->stream->audio_out->open) (this->stream->audio_out, -- cgit v1.2.3