]> git.sesse.net Git - ffmpeg/commit
avfiltergraph: try to reduce format conversions in filters.
authorAnton Khirnov <anton@khirnov.net>
Fri, 23 Mar 2012 14:14:40 +0000 (15:14 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 1 Apr 2012 07:04:09 +0000 (09:04 +0200)
commit63736fe48c30c5db313c3a25d1462ad31b2a1671
treedcb0310f1b136bf58b58607b6cfceda52a85c568
parent996f9f0c3280552d293c3dbe4266938927fd5908
avfiltergraph: try to reduce format conversions in filters.

Current code, with a filterchain such as
(input - yuv411) -> (scale - any) -> (sink - any)
will result in yuv420 being chosen for the second link, which is clearly
not right.

This commit attempts to improve in the following way:
repeat until convergence:
  loop over all filters
    find input link with exactly one format
    force this format on all output links of the same type (if possible)
libavfilter/avfiltergraph.c