History

vp9-rtc: Fix to resetting drop_spatial_layer

The reset happens on the base spatial layer, before encoding. But it should be reset on the first_spatial_layer_to_encode, which may not be 0.

Marco Paniconi committed 6 years ago

Commit 769129f1 parent e9c6cb61 file · +3 −2Browse files

Unified · Split

vp9/encoder/vp9_svc_layercontext.c+3−2
@@ -864,8 +864,9 @@ int vp9_one_pass_cbr_svc_start_layer(VP9_COMP *const cpi) { · 863 unmodified lines
864 }864 }
865 }865 }
866 866
867 // Reset the drop flags for all spatial layers, on the base layer.867 // Reset the drop flags for all spatial layers, on the
868 if (svc->spatial_layer_id == 0) {868 // first_spatial_layer_to_encode.
869 if (svc->spatial_layer_id == svc->first_spatial_layer_to_encode) {
869 vp9_zero(svc->drop_spatial_layer);870 vp9_zero(svc->drop_spatial_layer);
870 // TODO(jianj/marpan): Investigate why setting svc->lst/gld/alt_fb_idx871 // TODO(jianj/marpan): Investigate why setting svc->lst/gld/alt_fb_idx
871 // causes an issue with frame dropping and temporal layers, when the frame872 // causes an issue with frame dropping and temporal layers, when the frame

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