create new project h264 video decode compile error ?

i compile sample of video decode sdk (nvcodec: appdec) successfully .but i create a new project and add code like project AppDec , i compile error like below . Please help me ! thank ! (visual studio 2013 update 5)

Error 1 error C2065: ‘INTMAX_MAX’ : undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ratio 122 1 decoder_console
Error 2 error C2065: ‘INTMAX_MAX’ : undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ratio 124 1 decoder_console
Error 3 error C2065: ‘INTMAX_MAX’ : undeclared identifier C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ratio 44 1 decoder_console
Error 4 error C2338: integer arithmetic overflow C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ratio 36 1 decoder_console
Error 5 error C2039: ‘value’ : is not a member of ‘std::_Safe_multX<0x01,0x01,false>’ C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ratio 44 1 decoder_console

https://drive.google.com/open?id=1tGvCL8r_21mNal5qxxx0gP89oPw5dXVl

closed . Because i use new ffmpeg for linux in my project replace the default of sample sdk . Thank every one who viewed .