History

vc1dec: Set chroma reference field from REFFIELD for 1REF field pictures

Interlaced field pictures can have one or two reference pictures, signaled by NUMREF syntax element. For single reference pictures, reference picture is determined by REFFIELD syntax element.

Mashiat Sarker Shakkhar committed 14 years ago

Commit 88058d91 parent 26db9101 file · +1 −0Browse files

Unified · Split

libavcodec/vc1dec.c+1−0
@@ -794,6 +794,7 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir) · 793 unmodified lines
794 /* calculate chroma MV vector from four luma MVs */794 /* calculate chroma MV vector from four luma MVs */
795 if (!v->field_mode || (v->field_mode && !v->numref)) {795 if (!v->field_mode || (v->field_mode && !v->numref)) {
796 valid_count = get_chroma_mv(mvx, mvy, intra, 0, &tx, &ty);796 valid_count = get_chroma_mv(mvx, mvy, intra, 0, &tx, &ty);
797 chroma_ref_type = v->reffield;
797 if (!valid_count) {798 if (!valid_count) {
798 s->current_picture.f.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0;799 s->current_picture.f.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0;
799 s->current_picture.f.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0;800 s->current_picture.f.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0;

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