diff --git a/ffserver.c b/ffserver.c
index f401e426a14b004c6a46fe27503555d34defaa0a..3c1f7763268f06999253105452811439b9e04ec6 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -343,10 +343,10 @@ static void update_datarate(DataRateData *drd, int64_t count)
         drd->time1 = drd->time2 = cur_time;
         drd->count1 = drd->count2 = count;
     } else if (cur_time - drd->time2 > 5000) {
-            drd->time1 = drd->time2;
-            drd->count1 = drd->count2;
-            drd->time2 = cur_time;
-            drd->count2 = count;
+        drd->time1 = drd->time2;
+        drd->count1 = drd->count2;
+        drd->time2 = cur_time;
+        drd->count2 = count;
     }
 }