[FFmpeg-devel] [PATCH]Use correct msvc type specifiers for ptrdiff_t and size_t

wm4 nfxjfg at googlemail.com
Wed Apr 23 21:41:54 CEST 2014


On Wed, 23 Apr 2014 15:28:56 +0200
Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Hi!
> 
> Attached patch intends to fix crashes when using printing debug (and error) 
> messages after msvc compilation, fixes ticket #3472.
> I did not test myself.
> 
> Please comment, Carl Eugen

This requires changes in every single log call. Wouldn't it be better
to provide a wrapper around snprintf on MSVC that automatically
replaces the printf specifiers as needed and pretends to be C99?

(In fact there's already a wrapper, but it leaves the format string
alone currently.)


More information about the ffmpeg-devel mailing list