swscale/ops: only print SWS_OP_SCALE denom if not 1

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-28 17:49:46 +01:00
committed by Niklas Haas
parent ff397a327a
commit e8f6c9dbf2
2 changed files with 4 additions and 2 deletions

View File

@@ -878,7 +878,9 @@ void ff_sws_op_desc(AVBPrint *bp, const SwsOp *op)
av_bprintf(bp, "]");
break;
case SWS_OP_SCALE:
av_bprintf(bp, "%-20s: * %d/%d", name, op->c.q.num, op->c.q.den);
av_bprintf(bp, "%-20s: * %d", name, op->c.q.num);
if (op->c.q.den != 1)
av_bprintf(bp, "/%d", op->c.q.den);
break;
case SWS_OP_FILTER_H:
case SWS_OP_FILTER_V: {

View File

@@ -1 +1 @@
a872c7d917c532ba92397c1410f04388
a2ed0581163448a2c398ee9992e8eaf6