diff --git a/subprojects/gst-plugins-bad/tests/examples/qsv/qsvenc-dynamic-reconfigure.c b/subprojects/gst-plugins-bad/tests/examples/qsv/qsvenc-dynamic-reconfigure.c
index 1e810da438..d5ceb14227 100644
--- a/subprojects/gst-plugins-bad/tests/examples/qsv/qsvenc-dynamic-reconfigure.c
+++ b/subprojects/gst-plugins-bad/tests/examples/qsv/qsvenc-dynamic-reconfigure.c
@@ -146,8 +146,8 @@ keyboard_cb (gchar input, gboolean is_ascii, gpointer user_data)
         gst_println ("Decrease width to %d", width);
         break;
       case KB_ARROW_RIGHT:
-        height += 2;
-        gst_println ("Increase height to %d", height);
+        width += 2;
+        gst_println ("Increase width to %d", width);
         break;
       default:
         break;