summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 19:29:35 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 19:29:35 +0100
commit64a216c54142bde7188b690776c0a5decc0cef94 (patch)
treef34faeb13c3d928eabd7c4f22b1b7e90bbe6bf09
parent04b9c745d4e4c379724df14a422e35ad81c7bce6 (diff)
downloadxine-lib-64a216c54142bde7188b690776c0a5decc0cef94.tar.gz
xine-lib-64a216c54142bde7188b690776c0a5decc0cef94.tar.bz2
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
-rw-r--r--src/libfaad/xine_faad_decoder.c2
1 files changed, 2 insertions, 0 deletions
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,