| 1 |
https://android-review.googlesource.com/298277 |
| 2 |
https://android.googlesource.com/platform/frameworks/av/+log/master/media/libstagefright/codecs/amrwb |
| 3 |
https://github.com/mstorsjo/platform_external_opencore |
| 4 |
https://sourceforge.net/p/opencore-amr/code/ |
| 5 |
--- opencore/codecs_v2/audio/gsm_amr/amr_wb/dec/src/mime_io.cpp (OpenCORE-AMR 0.1.3) |
| 6 |
+++ opencore/codecs_v2/audio/gsm_amr/amr_wb/dec/src/mime_io.cpp (working copy) |
| 7 |
@@ -655,14 +647,19 @@ void mime_unsorting(uint8 unsorted_bits[ |
| 8 |
} |
| 9 |
} |
| 10 |
|
| 11 |
- if (unpacked_size[*mode] % 4) |
| 12 |
+ temp = *unsorted_bits_ptr; /* convert the remaining 0 to 7 bits */ |
| 13 |
+ for (i = unpacked_size[*mode] % 8; i != 0; i--) |
| 14 |
{ |
| 15 |
- temp <<= 1; |
| 16 |
- |
| 17 |
if (temp & 0x80) |
| 18 |
{ |
| 19 |
sorted_bits_into_int16[*(pt_AmrWbSortingTables++)] = BIT_1; |
| 20 |
} |
| 21 |
+ else |
| 22 |
+ { |
| 23 |
+ pt_AmrWbSortingTables++; |
| 24 |
+ } |
| 25 |
+ |
| 26 |
+ temp <<= 1; |
| 27 |
} |
| 28 |
|
| 29 |
/* set frame type */ |