Commit bc219b0794 for aom
commit bc219b07946fd52d3caa97221807ec084c18668b
Author: Lin Zheng <linzhen@google.com>
Date: Tue Sep 15 16:40:26 2026 +0000
Remove redundant checks in av1_compute_global_motion_disflow
Remove duplicate image dimension and corner count checks in
av1_compute_global_motion_disflow() that were inadvertently added
during a merge conflict resolution.
Coverity-defect: CID 564107 (Logically dead code)
Change-Id: I35b0acfdea4d4802f0cdeaae8f22d24c2fd9df4e
diff --git a/aom_dsp/flow_estimation/disflow.c b/aom_dsp/flow_estimation/disflow.c
index 6a41642d52..cb044ba57e 100644
--- a/aom_dsp/flow_estimation/disflow.c
+++ b/aom_dsp/flow_estimation/disflow.c
@@ -808,13 +808,6 @@ bool av1_compute_global_motion_disflow(
ref_pyramid->layers[0].height != src_height) {
return false;
}
- if (src_width < (1 << DOWNSAMPLE_SHIFT) ||
- src_height < (1 << DOWNSAMPLE_SHIFT)) {
- return false;
- }
- if (src_corners->num_corners == 0) {
- return false;
- }
if (ref_pyramid->layers[0].stride != src_pyramid->layers[0].stride) {
return false;