Skip to content

Conversation

@nilaoda
Copy link
Owner

@nilaoda nilaoda commented Oct 29, 2025

Fix #732

检测逻辑 判断方式 优点
压缩检测 Content-Encoding 立即判定为文本,节省 IO
TS 检测 读取前 188/376/564 字节 快速识别 MPEG-TS 流
启发式检测 判断可打印字符、UTF-8 合法性、NULL 字节比例 能区分中文文本与二进制数据
内存安全 仅读取前 4KB 采样,不整块加载 适合超大响应体

@nilaoda nilaoda merged commit 0a3f0bf into main Oct 29, 2025
@nilaoda nilaoda deleted the fix/ts-check branch October 29, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

文件格式识别异常 MPD被误判为RE_LIVE_TS

2 participants