avfilter/vf_idet: Fixes issue with idet not flushing last frame.
authorNeil Birkbeck <neil.birkbeck@gmail.com>
Wed, 22 Oct 2014 06:40:06 +0000 (23:40 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Oct 2014 13:07:36 +0000 (15:07 +0200)
commitad5c43bb36b0d3615bb5f9c8ebf626038abb384a
tree4ee804b142d9291dbe942ece286d772fdbaca07d
parenta39201818feab04c029f5b17bad2e7f40c1f2eab
avfilter/vf_idet: Fixes issue with idet not flushing last frame.

Uses a similar approach as vf_yadif to flush the last frame in idet.

Quick test with 50 frames from vsynth1:
./ffmpeg.old -i fate-suite/ffmpeg-synthetic/vsynth1/%02d.pgm -vf idet -f mp4 -y /dev/null 2>&1  | grep Multi
 (gives) [Parsed_idet_0 @ 0x261ebb0] Multi frame detection: TFF:0 BFF:0 Progressive:48 Undetermined:1

./ffmpeg -i fate-suite/ffmpeg-synthetic/vsynth1/%02d.pgm -vf idet -f mp4 -y /dev/null 2>&1  | grep Multi
 (gives) [Parsed_idet_0 @ 0x35a0bb0] Multi frame detection: TFF:0 BFF:0 Progressive:49 Undetermined:1

Fate tests have been updated.

(In testing, it seems this filter will also need a subsequent patch for single frame input)

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_idet.c
libavfilter/vf_idet.h
tests/ref/fate/filter-idet