mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
update to libvpx b46243d from repo https://chromium.googlesource.com/webm/libvpx
This commit is contained in:
1 parent
2b1f0da5c4
commit
8c5f0301f3
1008 files changed
+110139
-201288
No files matched your search
@@ -18,11 +18,8 @@
|
||||
#include "vpx_mem/vpx_mem.h"
|
||||
#include "vpx_util/endian_inl.h"
|
||||
|
||||
int vpx_reader_init(vpx_reader *r,
|
||||
const uint8_t *buffer,
|
||||
size_t size,
|
||||
vpx_decrypt_cb decrypt_cb,
|
||||
void *decrypt_state) {
|
||||
int vpx_reader_init(vpx_reader *r, const uint8_t *buffer, size_t size,
|
||||
vpx_decrypt_cb decrypt_cb, void *decrypt_state) {
|
||||
if (size && !buffer) {
|
||||
return 1;
|
||||
} else {
|
||||
@@ -55,21 +52,21 @@ void vpx_reader_fill(vpx_reader *r) {
|
||||
buffer_start = r->clear_buffer;
|
||||
}
|
||||
if (bits_left > BD_VALUE_SIZE) {
|
||||
const int bits = (shift & 0xfffffff8) + CHAR_BIT;
|
||||
BD_VALUE nv;
|
||||
BD_VALUE big_endian_values;
|
||||
memcpy(&big_endian_values, buffer, sizeof(BD_VALUE));
|
||||
const int bits = (shift & 0xfffffff8) + CHAR_BIT;
|
||||
BD_VALUE nv;
|
||||
BD_VALUE big_endian_values;
|
||||
memcpy(&big_endian_values, buffer, sizeof(BD_VALUE));
|
||||
#if SIZE_MAX == 0xffffffffffffffffULL
|
||||
big_endian_values = HToBE64(big_endian_values);
|
||||
big_endian_values = HToBE64(big_endian_values);
|
||||
#else
|
||||
big_endian_values = HToBE32(big_endian_values);
|
||||
big_endian_values = HToBE32(big_endian_values);
|
||||
#endif
|
||||
nv = big_endian_values >> (BD_VALUE_SIZE - bits);
|
||||
count += bits;
|
||||
buffer += (bits >> 3);
|
||||
value = r->value | (nv << (shift & 0x7));
|
||||
nv = big_endian_values >> (BD_VALUE_SIZE - bits);
|
||||
count += bits;
|
||||
buffer += (bits >> 3);
|
||||
value = r->value | (nv << (shift & 0x7));
|
||||
} else {
|
||||
const int bits_over = (int)(shift + CHAR_BIT - bits_left);
|
||||
const int bits_over = (int)(shift + CHAR_BIT - (int)bits_left);
|
||||
int loop_end = 0;
|
||||
if (bits_over >= 0) {
|
||||
count += LOTS_OF_BITS;
|
||||
|
||||
Reference in new issue
Block a user