vc1dec: factorize picture pointer selection in vc1_mc_4mv_chroma()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
72e5d91908
commit
236b0c4084
@ -849,18 +849,13 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
if (v->field_mode) {
|
if (v->field_mode && (v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
|
||||||
if ((v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
|
|
||||||
srcU = s->current_picture.f.data[1];
|
srcU = s->current_picture.f.data[1];
|
||||||
srcV = s->current_picture.f.data[2];
|
srcV = s->current_picture.f.data[2];
|
||||||
} else {
|
} else {
|
||||||
srcU = s->last_picture.f.data[1];
|
srcU = s->last_picture.f.data[1];
|
||||||
srcV = s->last_picture.f.data[2];
|
srcV = s->last_picture.f.data[2];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
srcU = s->last_picture.f.data[1];
|
|
||||||
srcV = s->last_picture.f.data[2];
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
srcU = s->next_picture.f.data[1];
|
srcU = s->next_picture.f.data[1];
|
||||||
srcV = s->next_picture.f.data[2];
|
srcV = s->next_picture.f.data[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user