Commit a75dd13b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'eb657ece'

* commit 'eb657ece':
  vc1dec: Set opposite to the correct value for 1REF field pictures
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents ce27c9eb eb657ece
......@@ -1460,10 +1460,16 @@ static inline void vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y,
}
if (v->field_mode) {
if (num_samefield <= num_oppfield)
opposite = 1 - pred_flag;
else
opposite = pred_flag;
if (!v->numref)
// REFFIELD determines if the last field or the second-last field is
// to be used as reference
opposite = 1 - v->reffield;
else {
if (num_samefield <= num_oppfield)
opposite = 1 - pred_flag;
else
opposite = pred_flag;
}
} else
opposite = 0;
if (opposite) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment