mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-09 13:43:00 +00:00
rv30: fix masking in rv30_loop_filter()
The mask `x && (1 << y)' is incorrect and always yields true. The correct form should be `x & (1 << y)'. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
80ac87c13d
commit
783e37f7ef
@ -182,7 +182,7 @@ static void rv30_loop_filter(RV34DecContext *r, int row)
|
||||
for(i = !mb_x; i < 2; i++, C += 4){
|
||||
int ij = i + (j >> 1);
|
||||
loc_lim = 0;
|
||||
if(cur_cbp && (1 << ij))
|
||||
if (cur_cbp & (1 << ij))
|
||||
loc_lim = cur_lim;
|
||||
else if(!i && left_cbp & (1 << (ij + 1)))
|
||||
loc_lim = left_lim;
|
||||
@ -224,7 +224,7 @@ static void rv30_loop_filter(RV34DecContext *r, int row)
|
||||
for(i = 0; i < 2; i++, C += 4){
|
||||
int ij = i + (j >> 1);
|
||||
loc_lim = 0;
|
||||
if(r->cbp_chroma[mb_pos] && (1 << ij))
|
||||
if (r->cbp_chroma[mb_pos] & (1 << ij))
|
||||
loc_lim = cur_lim;
|
||||
else if(!j && top_cbp & (1 << (ij + 2)))
|
||||
loc_lim = top_lim;
|
||||
|
Loading…
x
Reference in New Issue
Block a user