FFMPEG Android集成小坑
FFMPEG Android集成小坑
项目需要,集成FFMPEG。因为程序员的洁癖,只想集成一个“纯净”的代码,不可避免的踏了一些小坑。
error: conflicting types for ‘av_small_strptime’
一开始编译就出现如下错误:
ffmpeg/libavutil/parseutils.h:186:64: warning: declaration of 'struct tm' will not be visible outside of this function [-Wvisibility]
char *av_small_strptime(const char *p, const char *fmt, struct tm *dt);
^
ffmpeg/libavutil/parseutils.h:191:25: warning: declaration of 'struct tm' will not be visible outside of this function [-Wvisibility]
time_t av_timegm(struct tm *tm);
^
ffmpeg/libavutil/parseutils.c:469:64: warning: declaration of 'struct tm' will not be visible outside of this function [-Wvisibility]
char *av_small_strptime(const char *p