History

vp10: don't allow comp_inter_inter on keyframes.

Ronald S. Bultje committed 11 years ago

Commit 6a032501 parent 558d93f2 files · +4 −0Browse files

Showing the changes to vp10 (2 of 2 files). Show all

Unified · Split

2 files
  1. vp10/decoder/decodeframe.c +2 −0
  2. vp10/encoder/encodeframe.c +2 −0
vp10/decoder/decodeframe.c+2−0
@@ -47,6 +47,8 @@ · 46 unmodified lines
4747
4848 static int is_compound_reference_allowed(const VP10_COMMON *cm) {
4949 int i;
50+ if (frame_is_intra_only(cm))
51+ return 0;
5052 for (i = 1; i < REFS_PER_FRAME; ++i)
5153 if (cm->ref_frame_sign_bias[i + 1] != cm->ref_frame_sign_bias[1])
5254 return 1;
vp10/encoder/encodeframe.c+2−0
@@ -2807,6 +2807,8 @@ void vp10_encode_frame(VP10_COMP *cpi) { · 2806 unmodified lines
28072807 cm->comp_var_ref[0] = LAST_FRAME;
28082808 cm->comp_var_ref[1] = GOLDEN_FRAME;
28092809 }
2810+ } else {
2811+ cpi->allow_comp_inter_inter = 0;
28102812 }
28112813
28122814 if (cpi->sf.frame_parameter_update) {

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