diff --git a/libavfilter/vf_edgedetect.c b/libavfilter/vf_edgedetect.c
index 5902c51c011e41083f762bb71e50679e70bd88f6..60112cb11c053de88cebe6709fb8239e01d7165a 100644
--- a/libavfilter/vf_edgedetect.c
+++ b/libavfilter/vf_edgedetect.c
@@ -142,7 +142,7 @@ static int get_rounded_direction(int gx, int gy)
      * Gy/Gx is the tangent of the angle (theta), so Gy/Gx is compared against
      * <ref-angle>, or more simply Gy against <ref-angle>*Gx
      *
-     * Gx and Gy bounds = [1020;1020], using 16-bit arithmetic:
+     * Gx and Gy bounds = [-1020;1020], using 16-bit arithmetic:
      *   round((sqrt(2)-1) * (1<<16)) =  27146
      *   round((sqrt(2)+1) * (1<<16)) = 158218
      */