From e40105f4db6a45800a24606483c8cdaf2e819a80 Mon Sep 17 00:00:00 2001 From: maks Date: Thu, 6 Feb 2014 17:32:47 -0500 Subject: [PATCH] Fixes internal check_control_input() error checking. The code was wrong, but did not have any impact on user-visible behaviour because all it did was change an internal-only error code. Signed-off-by: Jean-Marc Valin --- silk/enc_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/silk/enc_API.c b/silk/enc_API.c index 43739efc..f1993ada 100644 --- a/silk/enc_API.c +++ b/silk/enc_API.c @@ -165,7 +165,7 @@ opus_int silk_Encode( /* O Returns error co psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded = psEnc->state_Fxx[ 1 ].sCmn.nFramesEncoded = 0; /* Check values in encoder control structure */ - if( ( ret = check_control_input( encControl ) != 0 ) ) { + if( ( ret = check_control_input( encControl ) ) != 0 ) { silk_assert( 0 ); RESTORE_STACK; return ret;