mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-10 17:14:41 +00:00
At check_count == CHECK_COUNT the existing branch caps the score at SCORE_MAX/2 even when every analyzed packet is sync-aligned and when analyze() already has full confidence. This loses probe to signature-only image demuxers (e.g. png_pipe at SCORE_MAX - 1) for streams with a small leading non-TS prefix. Some CDNs prepend a 1x1 PNG to MPEG-TS payloads to bypass image-only Content-Type filtering, and the PNG signature otherwise wins the first probe iteration. Fixes: https://github.com/mpv-player/mpv/issues/11365 Signed-off-by: Kacper Michajłow <kasper93@gmail.com>