ubuntu中使用最新版ffmpeg

在ubuntu中使用最新版ffmpeg,出现一些错误,现将错误和解决方案列举如下:

error 1: libavutil/common.h:170:47: error: ‘UINT64_C’ was not declared in this scope
solution: Add the code below to the common.h
    #ifdef __cplusplus
    #define __STDC_CONSTANT_MACROS
    #ifdef _STDINT_H
    #undef _STDINT_H
    #endif
    # include <stdint.h>
    #endif

原文地址:https://www.cnblogs.com/JohnShao/p/2240552.html