ope_encoder_deferred_init_with_mapping() no longer takes family 0
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 6 Feb 2018 19:33:44 +0000 (14:33 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 6 Feb 2018 19:33:44 +0000 (14:33 -0500)
src/opusenc.c

index 5caf310..e31d17b 100644 (file)
@@ -406,7 +406,7 @@ int ope_encoder_deferred_init_with_mapping(OggOpusEnc *enc, int family, int stre
     return OPE_TOO_LATE;
   }
   if (family < 0 || family > 255) return OPE_BAD_ARG;
-  else if (family != 0 && family != 1 && family != 255) return OPE_UNIMPLEMENTED;
+  else if (family != 1 && family != 255) return OPE_UNIMPLEMENTED;
   else if (streams <= 0 || streams>255 || coupled_streams<0 || coupled_streams >= 128 || streams+coupled_streams > 255) return OPE_BAD_ARG;
   st=opus_multistream_encoder_create(48000, enc->channels, streams, coupled_streams, mapping, OPUS_APPLICATION_AUDIO, &ret);
   if (! (ret == OPUS_OK && st != NULL) ) {