[Ffmpeg-devel] [PATCH] Portable snprintf argument for http.c

Ramiro Polla angustia
Wed Jan 24 21:30:33 CET 2007


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.




More information about the ffmpeg-devel mailing list