CVE-2026-38345: Ffmpeg Swscale Fast Bilinear Div By Zero

Fast bilinear scaling allows destination width equal to 8, which can lead to division by zero during chroma scale calculations. Ensure `dstW <= 8` is checked to fall back to standard bilinear.

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0C
greprules fetch cve-2026-38345-ffmpeg-swscale-fast-bilinear-div-by-zero --engine opengrep

Description

Fast bilinear scaling allows destination width equal to 8, which can lead to division by zero during chroma scale calculations. Ensure `dstW <= 8` is checked to fall back to standard bilinear.