[FFmpeg-devel] VS 2015 patch

Bruce Dawson brucedawson at google.com
Tue Nov 24 23:18:47 CET 2015


I've been working on getting Chromium compiling with VS 2015 and there are
some tweaks needed to ffmpeg to get it working with gn. Currently the
BUILD.gn file defines five symbols/keywords that are missing from VS 2013's
C compiler, and defines _snprintf to make it safer. These defines are
illegal and do not work in VS 2015, , and they are not necessary because VS
2015 supplies inline, snprintf, etc. These are the defines:

  "inline=__inline",
  "strtoll=_strtoi64",
  "strtod=avpriv_strtod",
  "snprintf=avpriv_snprintf",
  "_snprintf=avpriv_snprintf",
  "vsnprintf=avpriv_vsnprintf",

The attached patch lets ffmpeg build with both VS 2013 and VS 2015.

Comments?

-- 
Bruce Dawson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-VS-2015-builds-of-ffmpeg-with-gn.patch
Type: application/octet-stream
Size: 2105 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151124/f575a82d/attachment.obj>


More information about the ffmpeg-devel mailing list