OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103278f
)
bitstream: Properly promote av_reverse values before shifting.
author
Alex Converse
<aconverse@google.com>
Tue, 26 Apr 2011 16:08:26 +0000
(09:08 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Fri, 10 Jun 2011 20:04:25 +0000
(13:04 -0700)
libavcodec/bitstream.c
patch
|
blob
|
history
diff --git
a/libavcodec/bitstream.c
b/libavcodec/bitstream.c
index
97d5b49
..
b593db5
100644
(file)
--- a/
libavcodec/bitstream.c
+++ b/
libavcodec/bitstream.c
@@
-116,10
+116,10
@@
static int alloc_table(VLC *vlc, int size, int use_static)
}
static av_always_inline uint32_t bitswap_32(uint32_t x) {
- return av_reverse[x&0xFF]<<24
- | av_reverse[(x>>8)&0xFF]<<16
- | av_reverse[(x>>16)&0xFF]<<8
- | av_reverse[x>>24];
+ return
(uint32_t)
av_reverse[x&0xFF]<<24
+ |
(uint32_t)
av_reverse[(x>>8)&0xFF]<<16
+ |
(uint32_t)
av_reverse[(x>>16)&0xFF]<<8
+ |
(uint32_t)
av_reverse[x>>24];
}
typedef struct {