[opus] Bug in getting result of check_control_input()

Jean-Marc Valin jmvalin at jmvalin.ca
Thu Feb 6 14:46:23 PST 2014


Thanks for reporting this. It's definitely an error in the code and I
just applied the fix you suggested. That being said, I checked and given
the way that code is used, it could not have caused any problems since
all the code really cares about is zero vs non-zero.

Cheers,

	Jean-Marc

On 01/31/2014 05:00 PM, maks wrote:
> opus\silk\enc_API.c
> silk_Encode()
> 
> 168:
> if( ( ret = check_control_input( encControl ) != 0 ) ) {
> 
> priority of the '!=' operator is higher than '=' operator
> 
> fix:
> if( ( ret = check_control_input( encControl ) ) != 0 ) {
> _______________________________________________
> opus mailing list
> opus at xiph.org
> http://lists.xiph.org/mailman/listinfo/opus
> 



More information about the opus mailing list