🎥 Command line media player
This report summarizes scanner evidence for mpv-player/mpv, a C project with 37,638 GitHub stars. SynthScan examined 188,322 lines of code across 617 source files, recording 385 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 375 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 10 finding(s).
Which changes need focused human review? 385 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 385 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mpv_talloc.h | 1 | #include <stdlib.h> | COMMENT |
| LOW | misc/json.c | 41 | * invalid UTF-8 sequences to replacement characters. | COMMENT |
| LOW | misc/dispatch.c | 261 | // if executing the dispatch items takes time. On the other hand, this function | COMMENT |
| LOW | misc/io_utils.c | 21 | #include <errno.h> | COMMENT |
| LOW | misc/thread_tools.h | 21 | .wakeup = MP_STATIC_COND_INITIALIZER, \ | COMMENT |
| LOW | misc/thread_tools.h | 61 | void mp_cancel_reset(struct mp_cancel *c); | COMMENT |
| LOW | misc/thread_pool.h | 1 | #ifndef MPV_MP_THREAD_POOL_H | COMMENT |
| LOW | misc/thread_pool.h | 21 | // If no worker thread is currently available, it's appended to a list in memory | COMMENT |
| LOW | misc/jni.h | 21 | COMMENT | |
| LOW | misc/bstr.h | 81 | void bstr_lower(struct bstr str); | COMMENT |
| LOW | misc/bstr.h | 101 | // | COMMENT |
| LOW | misc/bstr.h | 121 | // Return the UTF-8 code point at the start of the string. | COMMENT |
| LOW | misc/codepoint_width.c | 1 | #include "codepoint_width.h" | COMMENT |
| LOW | misc/path_utils.c | 21 | #include <stdio.h> | COMMENT |
| LOW | misc/charset_conv.c | 21 | COMMENT | |
| LOW | filters/f_auto_filters.c | 1 | #include <math.h> | COMMENT |
| LOW | filters/f_autoconvert.h | 21 | // format changes and continue filtering when ready. | COMMENT |
| LOW | filters/f_autoconvert.h | 41 | // otherwise must be 0. (Mismatches lead to conversion errors.) | COMMENT |
| LOW | filters/f_hwtransfer.c | 1 | #include <libavutil/buffer.h> | COMMENT |
| LOW | filters/f_lavfi.c | 21 | #include <math.h> | COMMENT |
| LOW | filters/f_lavfi.c | 41 | #include "common/tags.h" | COMMENT |
| LOW | filters/f_enhancement_pair.c | 21 | #include "common/msg.h" | COMMENT |
| LOW | filters/filter_internal.h | 1 | #pragma once | COMMENT |
| LOW | filters/filter_internal.h | 21 | // In practice, this means process() is repeated. | COMMENT |
| LOW | filters/filter_internal.h | 61 | COMMENT | |
| LOW | filters/filter_internal.h | 81 | // The common case will be that process() is called running stage 1 a bunch | COMMENT |
| LOW | filters/filter_internal.h | 101 | // Return the mp_filter_info this filter was created with. | COMMENT |
| LOW | filters/f_swscale.c | 21 | #include <math.h> | COMMENT |
| LOW | filters/f_output_chain.c | 1 | #include "audio/aframe.h" | COMMENT |
| LOW | filters/filter.c | 1 | #include <math.h> | COMMENT |
| LOW | filters/filter.c | 21 | // mp_pin.conn is used to skip redundant connected pins. | COMMENT |
| LOW | filters/f_autoconvert.c | 1 | #include "audio/aframe.h" | COMMENT |
| LOW | filters/f_utils.h | 1 | #pragma once | COMMENT |
| LOW | filters/f_utils.h | 21 | // filtering.) | COMMENT |
| LOW | filters/f_utils.h | 41 | COMMENT | |
| LOW | filters/f_utils.h | 61 | void mp_subfilter_destroy(struct mp_subfilter *sub); | COMMENT |
| LOW | filters/f_async_queue.h | 1 | #pragma once | COMMENT |
| LOW | filters/f_async_queue.h | 21 | // further communication until mp_async_queue_resume() is called. | COMMENT |
| LOW | filters/f_async_queue.h | 41 | // accepts no further frames. Always returns false if not active (then it does | COMMENT |
| LOW | filters/f_async_queue.h | 61 | // has read requests on its mp_pin. | COMMENT |
| LOW | filters/f_async_queue.h | 81 | // create one with mp_filter_create_root()) | COMMENT |
| LOW | filters/f_async_queue.h | 121 | // at least 2 samples. Behavior is unclear on timestamp resets (even if EOF | COMMENT |
| LOW | filters/f_decoder_wrapper.c | 21 | #include <stdbool.h> | COMMENT |
| LOW | filters/f_decoder_wrapper.c | 41 | #include "common/recorder.h" | COMMENT |
| LOW | filters/f_lavfi.h | 1 | #pragma once | COMMENT |
| LOW | filters/f_swresample.c | 21 | #include <libavutil/channel_layout.h> | COMMENT |
| LOW | filters/f_enhancement_pair.h | 21 | COMMENT | |
| LOW | filters/filter.h | 1 | #pragma once | COMMENT |
| LOW | filters/filter.h | 41 | bool mp_pin_in_write(struct mp_pin *p, struct mp_frame frame); | COMMENT |
| LOW | filters/filter.h | 61 | // Read a frame. Returns MP_FRAME_NONE if currently no frame is available. | COMMENT |
| LOW | filters/filter.h | 81 | // If this is called, the next mp_pin_out_read() call will return the same frame | COMMENT |
| LOW | filters/filter.h | 101 | // a typical filter implementation) | COMMENT |
| LOW | filters/filter.h | 121 | // mp_pin_can_transfer_data(). Returns whether a transfer happened. | COMMENT |
| LOW | filters/filter.h | 141 | // on pin state changes. Using mp_pin_set_manual_connection() will default to | COMMENT |
| LOW | filters/filter.h | 321 | // output (MP_PIN_OUT). This is the default convention for filters. Some | COMMENT |
| LOW | filters/filter.h | 421 | // missing external input or unread output). It returns whether any outside | COMMENT |
| LOW | filters/filter.h | 441 | // call is interrupted and no filtering is done for that call. | COMMENT |
| LOW | filters/filter.h | 461 | struct mp_filter *mp_filter_create_root(struct mpv_global *global); | COMMENT |
| LOW | filters/f_output_chain.h | 41 | // and the implementation drained the filter chain and unset the internal ao | COMMENT |
| LOW | options/m_property.h | 21 | #include <stdbool.h> | COMMENT |
| 296 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | TOOLS/gen-interface-changes.py | 7 | # This file is part of mpv. | COMMENT |
| MEDIUM | TOOLS/matroska.py | 12 | # This file is part of mpv. | COMMENT |
| MEDIUM | TOOLS/file2string.py | 9 | # This file is part of mpv. | COMMENT |
| MEDIUM | TOOLS/gen-mpv-desktop.py | 7 | # This file is part of mpv. | COMMENT |
| MEDIUM | TOOLS/docutils-wrapper.py | 8 | # This file is part of mpv. | COMMENT |
| MEDIUM | ci/publish-release.sh | 114 | # Create the release once (which also creates the tag), then only edit it in | COMMENT |
| MEDIUM | etc/_mpv.zsh | 9 | # This file is part of mpv. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | filters/f_swresample.c | 529 | // Essentially, swr_set_compensation() does 2 things: | COMMENT |
| MEDIUM | video/img_format.c | 364 | // is robust. | COMMENT |
| MEDIUM | stream/stream_bluray.c | 1110 | // Deferred to the read thread to do the seamless angle change. | COMMENT |
| MEDIUM | common/recorder.c | 34 | // Essentially, this should be higher than the highest supported keyframe | COMMENT |
| MEDIUM | osdep/mac/libmpv_helper.swift | 111 | // so only utilize a newly received FBO ID if it is nonzero. | COMMENT |
| MEDIUM | player/core.h | 86 | MPSEEK_FLAG_NOFLUSH = 1 << 1, // keeping remaining data for seamless loops | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | TOOLS/dylib_unhell.py | 108 | except Exception: | CODE |
| HIGH | TOOLS/docutils-wrapper.py | 45 | except FileNotFoundError: | CODE |
| HIGH | TOOLS/macos-sdk-version.py | 40 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | TOOLS/dylib_unhell.py | 95 | except Exception: | CODE |
| LOW | TOOLS/dylib_unhell.py | 108 | except Exception: | CODE |
| MEDIUM | TOOLS/dylib_unhell.py | 89 | def check_vulkan_max_version(version): | CODE |
| LOW | TOOLS/docutils-wrapper.py | 61 | except Exception: | CODE |
| LOW | TOOLS/macos-sdk-version.py | 40 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | TOOLS/matroska.py | 314 | CODE | |
| LOW | TOOLS/matroska.py | 453 | CODE | |
| LOW | ci/lint-commit-msg.py | 42 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | TOOLS/dylib_unhell.py | 125 | def install_name_tool_add_rpath(rpath, binary): | CODE |
| LOW | TOOLS/dylib_unhell.py | 128 | def install_name_tool_delete_rpath(rpath, binary): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/avio_crypto.c | 185 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do " | CODE |
| LOW | test/avio_crypto.c | 185 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do " | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | TOOLS/uncrustify.cfg | 1 | # Usage: | COMMENT |