mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avfilter/avfiltergraph: always retry format negotiation after auto-filters
There is an edge case not covered by the current logic: If there is only a single auto-filter inserted, but the auto-inserted filter is incompatible with a *different* format attribute (after settling the previous formats), we may need a second auto-filter (e.g. `scale`) to settle the newly introduced incompatibility. A regression test demonstrating the issue is added.
This commit is contained in:
@@ -701,10 +701,11 @@ retry:
|
||||
}
|
||||
}
|
||||
|
||||
/* if there is more than one auto filter, we may need another round
|
||||
* to fully settle formats due to possible cross-incompatibilities
|
||||
* between the auto filters themselves */
|
||||
if (num_conv > 1)
|
||||
/* if there is an auto filter, we may need another round to fully
|
||||
* settle formats due to possible cross-incompatibilities between
|
||||
* the auto filters themselves, or between the auto filters and
|
||||
* a different attribute of the filter they are modifying */
|
||||
if (num_conv)
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user