]> git.sesse.net Git - ffmpeg/blobdiff - tools/aviocat.c
Merge commit 'abb810db036628e11a5171134ebe320b187ee6d6'
[ffmpeg] / tools / aviocat.c
index 56b918e44d4f0d4612373d799c6252b1b4b6f6c2..3bd62b7b48b5261db9168a3af94cd34dc523df50 100644 (file)
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
         goto fail;
     }
 
-    start_time = av_gettime();
+    start_time = av_gettime_relative();
     while (1) {
         uint8_t buf[1024];
         int n;
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
         stream_pos += n;
         if (bps) {
             avio_flush(output);
-            while ((av_gettime() - start_time) * bps / AV_TIME_BASE < stream_pos)
+            while ((av_gettime_relative() - start_time) * bps / AV_TIME_BASE < stream_pos)
                 av_usleep(50 * 1000);
         }
     }