UINT64_C was not defined when including libavformat/avformat.h in VS 2008

When including libavformat/avformat.h in VS2008, I got following error:

UINT64_C was not defined in this scope.

 

Add following code before including avformat.h will solve this problem: