ref: 8a7543c49e6cb944258b4cbe5598091e93b290ad
parent: 4cc9a459e84d23bd9a96560e1e7397cd78dd38ab
author: Gregory Maxwell <[email protected]>
date: Mon Oct 3 09:29:06 EDT 2011
Remove warning added by 4cc9a459.
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -322,8 +322,8 @@
if (redundancy)
{
celt_to_silk = ec_dec_bit_logp(&dec, 1);
- /*Due to the ec_tell check above redundancy_bytes will be at least two for hybrid*/
- redundancy_bytes = mode==MODE_HYBRID ? ec_dec_uint(&dec, 256)+2 : len-((ec_tell(&dec)+7)>>3);
+ /* redundancy_bytes will be at least two, in the non-hybrid case due to the ec_tell() check above */
+ redundancy_bytes = mode==MODE_HYBRID ? (opus_int32)ec_dec_uint(&dec, 256)+2 : len-((ec_tell(&dec)+7)>>3);
len -= redundancy_bytes;
if (len<0)
{