[FFmpeg-devel] [PATCH] ffserver: cast PID to int64_t before printing

Ganesh Ajjanagadde gajjanagadde at gmail.com
Fri Aug 21 04:17:15 CEST 2015


On Thu, Aug 20, 2015 at 10:03 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> On Thu, Aug 20, 2015 at 9:29 PM, Timothy Gu <timothygu99 at gmail.com> wrote:
>> On Thu, Aug 20, 2015 at 6:03 PM Ganesh Ajjanagadde <gajjanagadde at gmail.com>
>> wrote:
>>>
>>> -            avio_printf(pb, "Running as pid %d.\n", stream->pid);
>>> +            avio_printf(pb, "Running as pid %ld.\n", (int64_t)
>>> stream->pid);
>>
>>
>> You need `"%" PRIi64` as the format specifier.
>
> You are right. Thanks, will post updated patch.

So I used PRId64 instead of PRIi64.
Is there an issue with that?

>
>>
>> Timothy


More information about the ffmpeg-devel mailing list