cosmetic: remove extra parenthesis
authorAlex Beregszaszi <alex@rtfs.hu>
Wed, 8 Aug 2007 18:55:49 +0000 (18:55 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Wed, 8 Aug 2007 18:55:49 +0000 (18:55 +0000)
Originally committed as revision 9985 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 8525f7b..f401e42 100644 (file)
@@ -342,13 +342,11 @@ static void update_datarate(DataRateData *drd, int64_t count)
     if (!drd->time1 && !drd->count1) {
         drd->time1 = drd->time2 = cur_time;
         drd->count1 = drd->count2 = count;
-    } else {
-        if (cur_time - drd->time2 > 5000) {
+    } else if (cur_time - drd->time2 > 5000) {
             drd->time1 = drd->time2;
             drd->count1 = drd->count2;
             drd->time2 = cur_time;
             drd->count2 = count;
-        }
     }
 }