Add support for OPUS_MULTISTREAM_GET_ENCODER_STATE
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 4 May 2017 05:41:56 +0000 (01:41 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 4 May 2017 05:41:56 +0000 (01:41 -0400)
src/opusenc.c

index b77e9b0..eb9898d 100644 (file)
@@ -650,6 +650,15 @@ int ope_encoder_ctl(OggOpusEnc *enc, int request, ...) {
       }
     }
     break;
+    case OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST:
+    {
+      opus_int32 stream_id;
+      OpusEncoder **value;
+      stream_id = va_arg(ap, opus_int32);
+      value = va_arg(ap, OpusEncoder**);
+      ret = opus_multistream_encoder_ctl(enc->st, request, stream_id, value);
+    }
+    break;
 
     /* ****************** libopusenc-specific requests. ********************** */
     case OPE_SET_DECISION_DELAY_REQUEST: