[Ffmpeg-devel] [PATCH] Portable snprintf argument for http.c
Ramiro Polla
angustia
Wed Jan 24 22:15:43 CET 2007
Ramiro Polla wrote:
> M?ns Rullg?rd wrote:
>> ramiro at lisha.ufsc.br writes:
>>
>>
>>> Hello,
>>>
>>> Attached patch uses the portable PRIu64 argument for snprintf in http.c
>>>
>>> Ramiro Polla
>>>
>>> Index: libavformat/http.c
>>> ===================================================================
>>> --- libavformat/http.c (revision 7692)
>>> +++ libavformat/http.c (working copy)
>>> @@ -222,7 +222,7 @@
>>> "%s %s HTTP/1.1\r\n"
>>> "User-Agent: %s\r\n"
>>> "Accept: */*\r\n"
>>> - "Range: bytes=%llu-\r\n"
>>> + "Range: bytes=%"PRIu64"-\r\n"
>>> "Host: %s\r\n"
>>> "Authorization: Basic %s\r\n"
>>> "\r\n",
>>>
>>
>> The argument is signed...
>>
>>
>
> I thought about using PRId64, but I used the unsigned argument since
> the code used %llu.
Anyways, here's a patch with PRId64...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: http.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070124/d66651ff/attachment.asc>
More information about the ffmpeg-devel
mailing list