From 28d5a3a74aee33786673925a46a310c773e94748 Mon Sep 17 00:00:00 2001 From: James Almer Date: Thu, 7 Jan 2016 19:59:03 -0300 Subject: lavu: rename and move ff_parity to av_parity av_popcount is not defined in intmath.h. Reviewed-by: ubitux Signed-off-by: James Almer --- libavcodec/ccaption_dec.c | 4 ++-- libavcodec/g729dec.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index bdfe35fe70..310f25ef8b 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -202,10 +202,10 @@ static int validate_cc_data_pair(uint8_t *cc_data_pair) // if EIA-608 data then verify parity. if (cc_type==0 || cc_type==1) { - if (!ff_parity(cc_data_pair[2])) { + if (!av_parity(cc_data_pair[2])) { return AVERROR_INVALIDDATA; } - if (!ff_parity(cc_data_pair[1])) { + if (!av_parity(cc_data_pair[1])) { cc_data_pair[1]=0x7F; } } diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c index 7265883b0e..2e1bf18e4e 100644 --- a/libavcodec/g729dec.c +++ b/libavcodec/g729dec.c @@ -472,7 +472,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, ac_index = get_bits(&gb, format->ac_index_bits[i]); if(!i && format->parity_bit) - bad_pitch = ff_parity(ac_index >> 2) == get_bits1(&gb); + bad_pitch = av_parity(ac_index >> 2) == get_bits1(&gb); fc_indexes = get_bits(&gb, format->fc_indexes_bits); pulses_signs = get_bits(&gb, format->fc_signs_bits); gc_1st_index = get_bits(&gb, format->gc_1st_index_bits); -- cgit v1.2.3