avfilter/vf_framerate: do not calculate scene change score multiple times for the...
authorMarton Balint <cus@passwd.hu>
Sun, 10 Dec 2017 02:18:49 +0000 (03:18 +0100)
committerMarton Balint <cus@passwd.hu>
Thu, 21 Dec 2017 22:03:10 +0000 (23:03 +0100)
commitc6a65ed67088fd61017f14691b5fcecd133d9eeb
tree596f2f0ed7ef98b6c0cca81ea4800b76364b81bb
parente1113a83ccb6bb30e3ad865956fe9eed0d650394
avfilter/vf_framerate: do not calculate scene change score multiple times for the same frame

This speeds up the filter, and also fixes scene change detection score which is
reduced based on the difference of the current MAFD to the preivous MAFD.
Obviously if we compare two frames twice, the difference will be 0...

Signed-off-by: Marton Balint <cus@passwd.hu>
libavfilter/vf_framerate.c