summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/libwma/bitstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwma/bitstream.c b/apps/codecs/libwma/bitstream.c
index 78b078adc7..4c4ab232ff 100644
--- a/apps/codecs/libwma/bitstream.c
+++ b/apps/codecs/libwma/bitstream.c
@@ -155,7 +155,7 @@ static int build_table(VLC *vlc, int table_nb_bits,
155 code_prefix2= code & (n_prefix>=32 ? 0xffffffff : (uint32_t)(1 << n_prefix)-1); 155 code_prefix2= code & (n_prefix>=32 ? 0xffffffff : (uint32_t)(1 << n_prefix)-1);
156 else 156 else
157 code_prefix2= code >> n; 157 code_prefix2= code >> n;
158 if (n > 0 && (int)code_prefix2 == code_prefix) { 158 if (n > 0 && (int)code_prefix2 == (int)code_prefix) {
159 if (n <= table_nb_bits) { 159 if (n <= table_nb_bits) {
160 /* no need to add another table */ 160 /* no need to add another table */
161 j = (code << (table_nb_bits - n)) & (table_size - 1); 161 j = (code << (table_nb_bits - n)) & (table_size - 1);