[FFmpeg-devel] [PATCH] Fix printf format warnings

Måns Rullgård mans
Wed Jun 9 02:06:15 CEST 2010


Eli Friedman <eli.friedman at gmail.com> writes:

>>> - ? ? ? ? ? ? ? length2, packed_headers_end - packed_headers, length);
>>> + ? ? ? ? ? ? ? length2, (int)(packed_headers_end - packed_headers), length);
>>
>> %zd
>
> Oh, I wasn't sure if ffmpeg expects a C99-compliant printf.

Of course we do.  Why would we not?

> Changed to %td (which is technically more correct here).

My bad.  I even looked it up, yet managed to write the wrong one.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list