[FFmpeg-devel] [PATCH]ffserver: Cast time_t value when using it in a format string.

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Dec 22 09:40:00 CET 2015


Hi!

Attached patch should fix ticket #5103.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/ffserver.c b/ffserver.c
index c7dbb16..788ee6e 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3853,7 +3853,7 @@ static void handle_child_exit(int sig)
             fprintf(stderr,
                     "%s: Pid %"PRId64" exited with status %d after %"PRId64" "
                         "seconds\n",
-                    feed->filename, (int64_t) pid, status, uptime);
+                    feed->filename, (int64_t) pid, status, (int64_t)uptime);
 
             if (uptime < 30)
                 /* Turn off any more restarts */


More information about the ffmpeg-devel mailing list