avcodec/vc1: Simplify dmv_y initialization
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
751883c602
commit
d8e030c3cc
@@ -259,12 +259,9 @@ static av_always_inline void get_mvdata_interlaced(VC1Context *v, int *dmv_x,
|
|||||||
*dmv_x = get_bits(gb, v->k_x);
|
*dmv_x = get_bits(gb, v->k_x);
|
||||||
*dmv_y = get_bits(gb, v->k_y);
|
*dmv_y = get_bits(gb, v->k_y);
|
||||||
if (v->numref) {
|
if (v->numref) {
|
||||||
if (pred_flag) {
|
if (pred_flag)
|
||||||
*pred_flag = *dmv_y & 1;
|
*pred_flag = *dmv_y & 1;
|
||||||
*dmv_y = (*dmv_y + *pred_flag) >> 1;
|
*dmv_y = (*dmv_y + (*dmv_y & 1)) >> 1;
|
||||||
} else {
|
|
||||||
*dmv_y = (*dmv_y + (*dmv_y & 1)) >> 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user