Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #265661

Category ffmpeg
Changed by Jun Zhao <barryjzhaoohnoyoudont@tencent.com>
Changed at Tue 28 Apr 2026 08:14:38
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision a45fe72c9d88aeed10fa3a665c7243f351a1035d

Comments

avfilter/scale_eval: reject non-positive output dimensions
When scale filter expressions evaluate to zero or negative output
dimensions (e.g. cascaded scale=...:-2 on extreme aspect ratios),
ff_scale_adjust_dimensions() only checked for int32 overflow and
passed them through, potentially hanging downstream components.

Reject them explicitly so the pipeline fails fast.

Callers that currently ignore the return value will be updated in
the following patches to propagate the error.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>

Changed files