mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-21 21:30:24 +08:00
The variable 'size' is used as a loop index for the 'sizes' array. This naming similarity is error-prone and recently led to a typo where 'size[sizes]' was written instead of 'sizes[size]'. Rename the loop index variable from 'size' to 'idx' across all 10 test functions to make the code more readable and prevent similar typos. Additionally, replace the hardcoded loop upper bound '10' with 'FF_ARRAY_ELEMS(sizes)' for better maintainability. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>