diff options
author | James Almer <jamrial@gmail.com> | 2015-04-21 22:28:21 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-04-21 22:41:20 -0300 |
commit | ba625dd8a12b8f440af7f50c833e5c1005d67c85 (patch) | |
tree | 866b471ad22b28d6b5e74e94e9c8f78fb8b1d040 /libavcodec/g729dec.c | |
parent | 4f287a3c5007db853e4f1098ab194f9337e2f7da (diff) | |
download | ffmpeg-ba625dd8a12b8f440af7f50c833e5c1005d67c85.tar.gz |
avcodec: use av_mod_uintp2() where useful
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/g729dec.c')
-rw-r--r-- | libavcodec/g729dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index e97677b5c9..ed717baf75 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -512,7 +512,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, if (frame_erasure) { ctx->rand_value = g729_prng(ctx->rand_value); - fc_indexes = ctx->rand_value & ((1 << format->fc_indexes_bits) - 1); + fc_indexes = av_mod_uintp2(ctx->rand_value, format->fc_indexes_bits); ctx->rand_value = g729_prng(ctx->rand_value); pulses_signs = ctx->rand_value; |