mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Parity bit calculation routine for G.729
Originally committed as revision 15154 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d0b41d8931
commit
d3bb8ad7af
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user