History

Merge commit 'eb657ecefdeb8b2ed9bfb55d3c2c9e0f568486bf'

* commit 'eb657ecefdeb8b2ed9bfb55d3c2c9e0f568486bf': vc1dec: Set opposite to the correct value for 1REF field pictures

Michael Niedermayer committed 14 years ago

Commit a75dd132 parents ce27c9e eb657ec1 file · +10 −4Browse files

Unified · Split

libavcodec/vc1dec.c+10−4
@@ -1460,10 +1460,16 @@ static inline void vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y, · 1459 unmodified lines
14601460 }
14611461
14621462 if (v->field_mode) {
1463− if (num_samefield <= num_oppfield)
1464− opposite = 1 - pred_flag;
1465− else
1466− opposite = pred_flag;
1463+ if (!v->numref)
1464+ // REFFIELD determines if the last field or the second-last field is
1465+ // to be used as reference
1466+ opposite = 1 - v->reffield;
1467+ else {
1468+ if (num_samefield <= num_oppfield)
1469+ opposite = 1 - pred_flag;
1470+ else
1471+ opposite = pred_flag;
1472+ }
14671473 } else
14681474 opposite = 0;
14691475 if (opposite) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t