ffmpeg/libavfilter
Neil Birkbeck e4788e9cd9 avfilter/vf_yadif: fix extra leading dup frame when deint=1
Logic for handling single frame in yadif (0f9f24c9), caused deint=1 (e.g., yadif=0👎1) to output extra duplicate leading frame:

ffmpeg -i fate-suite/ffmpeg-synthetic/vsynth1/%02d.pgm  -vf yadif=0👎1,showinfo -f null -y /dev/null
 [Parsed_showinfo_1 @ 0x1d967d0] n:0 pts:0 pts_time:0 pos:-1 fmt:gray sar:0/1 s:352x432 i:P iskey:1 type:I checksum:E457EEA0 plane_checksum:[E457EEA0] mean:[126] stdev:[46.6]
 [Parsed_showinfo_1 @ 0x1d967d0] n:1 pts:0 pts_time:0 pos:-1 fmt:gray sar:0/1 s:352x432 i:P iskey:1 type:I checksum:E457EEA0 plane_checksum:[E457EEA0] mean:[126] stdev:[46.6]
(Outputs 51 frames)

After patch, vf "yadif=0👎1" behaves correctly (like "yadif=0👎0") and outputs 50 frames, first two:

[Parsed_showinfo_1 @ 0x1e307d0] n:0 pts:0 pts_time:0 pos:-1 fmt:gray sar:0/1 s:352x432 i:P iskey:1 type:I checksum:68E8D1EB plane_checksum:[68E8D1EB] mean:[126] stdev:[46.0]
[Parsed_showinfo_1 @ 0x1e307d0] n:1 pts:2 pts_time:0.04 pos:-1 fmt:gray sar:0/1 s:352x432 i:P iskey:1 type:I checksum:4E674BC7 plane_checksum:[4E674BC7] mean:[125] stdev:[46.0]
(Outputs 50 frames)

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-29 21:59:47 +01:00
..
2014-02-26 16:37:59 +00:00
2014-07-03 08:07:42 +00:00
2014-11-10 03:45:00 +01:00
2014-05-03 20:08:18 +02:00
2014-06-29 13:26:04 +02:00
2014-06-03 10:58:19 -08:00
2013-01-05 05:21:44 +01:00
2013-09-30 08:47:40 +00:00
2014-08-13 01:00:38 +02:00
2014-11-10 03:45:00 +01:00
2013-09-12 14:01:43 +00:00
2014-06-22 20:49:00 +02:00
2014-08-24 14:35:11 +02:00
2014-06-24 03:16:53 +02:00
2014-11-14 02:55:15 +01:00
2014-10-14 17:15:56 +02:00
2014-02-07 09:33:56 +01:00
2014-06-18 00:07:12 +02:00
2014-06-03 10:58:19 -08:00
2014-01-19 17:13:02 +01:00