OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0b41d8
)
Parity bit calculation routine for G.729
author
Vladimir Voroshilov
<voroshil@gmail.com>
Tue, 2 Sep 2008 17:15:28 +0000
(17:15 +0000)
committer
Vladimir Voroshilov
<voroshil@gmail.com>
Tue, 2 Sep 2008 17:15:28 +0000
(17:15 +0000)
Originally committed as revision 15154 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/g729dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/g729dec.c
b/libavcodec/g729dec.c
index
f17524a
..
b2761e4
100644
(file)
--- a/
libavcodec/g729dec.c
+++ b/
libavcodec/g729dec.c
@@
-71,6
+71,14
@@
static inline uint16_t g729_random(uint16_t value)
return 31821 * value + 13849;
}
+/**
+ * Get parity bit of bit 2..7
+ */
+static inline int g729_get_parity(uint8_t value)
+{
+ return (0x6996966996696996ULL >> (value >> 2)) & 1;
+}
+
AVCodec g729_decoder =
{
"g729",