23 #include <wels/codec_api.h>
24 #include <wels/codec_ver.h>
33 if (libopenh264_log_level >= WELS_LOG_DETAIL)
return AV_LOG_TRACE;
34 else if (libopenh264_log_level >= WELS_LOG_DEBUG)
return AV_LOG_DEBUG;
35 else if (libopenh264_log_level >= WELS_LOG_INFO)
return AV_LOG_VERBOSE;
36 else if (libopenh264_log_level >= WELS_LOG_WARNING)
return AV_LOG_WARNING;
37 else if (libopenh264_log_level >= WELS_LOG_ERROR)
return AV_LOG_ERROR;
46 av_log(
ctx, equiv_ffmpeg_log_level,
"%s\n", msg);
54 #if !defined(_WIN32) || !defined(__GNUC__) || !ARCH_X86_32 || AV_GCC_VERSION_AT_LEAST(4, 7)
55 OpenH264Version libver = WelsGetCodecVersion();
56 if (memcmp(&libver, &g_stCodecVersion,
sizeof(libver))) {