mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
swscale/ops_optimizer: always clear unused dither components
Makes the op list a bit more stable. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -518,9 +518,9 @@ retry:
|
||||
|
||||
case SWS_OP_DITHER:
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (next->comps.unused[i] || op->dither.y_offset[i] < 0)
|
||||
if (op->dither.y_offset[i] < 0)
|
||||
continue;
|
||||
if (prev->comps.flags[i] & SWS_COMP_EXACT) {
|
||||
if (next->comps.unused[i] || (prev->comps.flags[i] & SWS_COMP_EXACT)) {
|
||||
op->dither.y_offset[i] = -1; /* unnecessary dither */
|
||||
goto retry;
|
||||
} else {
|
||||
|
||||
@@ -1 +1 @@
|
||||
a312bd79cadff3e2e02fd14ae7e54e26
|
||||
121d60ee0261ca5d9650a8d1e9e8a060
|
||||
|
||||
Reference in New Issue
Block a user