阅读的第一个函数就是 av_set_flags(int arg)函数
av_log_set_flags(AV_LOG_SKIP_REPEATED);
AV_LOG_SKIP_REPEATED宏定义的说明是:
/**
* Skip repeated messages, this requires the user app to use av_log() instead of
* (f)printf as the 2 would otherwise interfere and lead to
* "Last message repeated x times" messages below (f)printf messages with some
* bad luck.
* Also to receive the last, "last repeated" line if any, the user app must
* call av_log(NULL, AV_LOG_QUIET, ""); at the end
*/
跳过重复的消息;这就要求用户应用程序使用av_log()日志函数,而不是printf()函数;
函数的源代码: