shithub: opus

Download patch

ref: 22345ef16eb89ddb992d136622a3231635625600
parent: 097fd4b1110b15604878cdb3bbe26e5415ccc039
author: Taihei Momma <[email protected]>
date: Mon Mar 11 09:07:34 EDT 2013

Fixes OPUS_SET_EXPERT_FRAME_DURATION_REQUEST for multi-stream

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -580,8 +580,6 @@
    case OPUS_SET_EXPERT_FRAME_DURATION_REQUEST:
    {
        opus_int32 value = va_arg(ap, opus_int32);
-       if (value<0 || value>1)
-          goto bad_arg;
        st->variable_duration = value;
    }
    break;