ffserver: cast PID to int64_t before printing
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 21 Aug 2015 02:12:40 +0000 (22:12 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Aug 2015 13:47:54 +0000 (15:47 +0200)
commit92b1a0fa9e7b67c2d549498274e1f2902178fa12
treea99ae705b8d412314772874b5556c07223b01991
parent5edf8b118d9f1e00389b7a8fc9f43bc873698399
ffserver: cast PID to int64_t before printing

Unfortunately, there is no portable format specifier for PID's.
Furthermore, it is not safe to assume pid_t <= 32 bit in size,
see e.g http://unix.derkeiler.com/Mailing-Lists/AIX-L/2010-08/msg00008.html.
Right now, it is ok to assume pid_t <= 32 bit in size, but this may change in the future.
Also, this patch fixes warning due to lack of an appropriate cast from
http://fate.ffmpeg.org/report.cgi?time=20150820233505&slot=x86-opensolaris-gcc4.3.
Note that this method of handling pid_t is in line with what nginx does.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver.c