]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vsrc_testsrc.c
Merge commit 'e926b5ceb1962833f0c884a328382bc2eca67aff'
[ffmpeg] / libavfilter / vsrc_testsrc.c
index 178f55e8cc80a38a231b3b9bee8d57e7212be530..1b474a294161d91f0dfb34944001d72c5ebb70ec 100644 (file)
@@ -322,8 +322,8 @@ AVFILTER_DEFINE_CLASS(testsrc);
  * @param w width  of the rectangle to draw, expressed as a number of segment_width units
  * @param h height of the rectangle to draw, expressed as a number of segment_width units
  */
-static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,
-                           unsigned x, unsigned y, unsigned w, unsigned h)
+static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, int segment_width,
+                           int x, int y, int w, int h)
 {
     int i;
     int step = 3;
@@ -337,8 +337,8 @@ static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigne
     }
 }
 
-static void draw_digit(int digit, uint8_t *dst, unsigned dst_linesize,
-                       unsigned segment_width)
+static void draw_digit(int digit, uint8_t *dst, int dst_linesize,
+                       int segment_width)
 {
 #define TOP_HBAR        1
 #define MID_HBAR        2
@@ -475,7 +475,7 @@ static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
         if (time >= INT_MAX)
             return;
 
-        for(x=0; x<test->nb_decimals; x++)
+        for (x = 0; x < test->nb_decimals; x++)
             p10decimals *= 10;
 
         second = av_rescale_rnd(test->nb_frame * test->time_base.num, p10decimals, test->time_base.den, AV_ROUND_ZERO);