summaryrefslogtreecommitdiff
path: root/src
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
commitd03706d097f334a5a0e95a2d1136d20ecd4d9def (patch)
tree880f1e486a9db2f865e105dce03a9f425185406d /src
parentb146752483e87d974355be91c2742d882e0b8dd5 (diff)
downloadxine-lib-d03706d097f334a5a0e95a2d1136d20ecd4d9def.tar.gz
xine-lib-d03706d097f334a5a0e95a2d1136d20ecd4d9def.tar.bz2
If the number of channels is not in the known cases, return a failure.
Diffstat (limited to 'src')
-rw-r--r--src/libxineadec/xine_faad_decoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libxineadec/xine_faad_decoder.c b/src/libxineadec/xine_faad_decoder.c
index 4bd6a02a7..c12e7816d 100644
--- a/src/libxineadec/xine_faad_decoder.c
+++ b/src/libxineadec/xine_faad_decoder.c
@@ -199,6 +199,8 @@ static int faad_open_output( faad_decoder_t *this ) {
case 2:
ao_cap_mode=AO_CAP_MODE_STEREO;
break;
+ default:
+ return 0;
}
this->output_open = (this->stream->audio_out->open) (this->stream->audio_out,