Browse Source

vc1dec: factorize picture pointer selection in vc1_mc_4mv_chroma()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
236b0c4084
1 changed files with 3 additions and 8 deletions
  1. +3
    -8
      libavcodec/vc1dec.c

+ 3
- 8
libavcodec/vc1dec.c View File

@@ -849,14 +849,9 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
}

if (!dir) {
if (v->field_mode) {
if ((v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
srcU = s->current_picture.f.data[1];
srcV = s->current_picture.f.data[2];
} else {
srcU = s->last_picture.f.data[1];
srcV = s->last_picture.f.data[2];
}
if (v->field_mode && (v->cur_field_type != chroma_ref_type) && v->cur_field_type) {
srcU = s->current_picture.f.data[1];
srcV = s->current_picture.f.data[2];
} else {
srcU = s->last_picture.f.data[1];
srcV = s->last_picture.f.data[2];


Loading…
Cancel
Save