Adds some checks to the surround API
diff --git a/src/opus_multistream.c b/src/opus_multistream.c
index 9493ca3..a126b16 100644
--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -272,6 +272,8 @@
       int application
 )
 {
+   if ((channels>255) || (channels<1))
+      return OPUS_BAD_ARG;
    st->lfe_stream = -1;
    if (mapping_family==0)
    {
@@ -306,9 +308,8 @@
          mapping[i] = i;
    } else
       return OPUS_UNIMPLEMENTED;
-   opus_multistream_encoder_init_impl(st, Fs, channels, *streams, *coupled_streams,
+   return opus_multistream_encoder_init_impl(st, Fs, channels, *streams, *coupled_streams,
          mapping, application, channels>2&&mapping_family==1);
-   return OPUS_OK;
 }
 
 OpusMSEncoder *opus_multistream_encoder_create(