FFmpeg/libavfilter
Marton Balint 0c31a3876d avfilter/vf_framerate: simplify filter
The framerate filter was quite convoluted with some filter_frame /
request_frame logic bugs. It seemed easier to rewrite the whole filter_frame /
request_frame part and also the frame interpolation ratio calculation part in
one step.

Notable changes:
- The filter now only stores 2 frames instead of 3
- filter_frame outputs all the frames it can to be able to handle consecutive
  filter_frame calls which previously caused early drops of buffered frames.
- because of this, request_frame is largely simplified and it only outputs
  frames on flush. Previously consecuitve request_frame calls could cause the
  filter to think it is in flush mode filling its buffer with the same frames
  causing a "ghost" effect on the output.
- PTS discontinuities are handled better
- frames with unknown PTS values are now dropped

Fixes ticket #4870.
Probably fixes ticket #5493.

Signed-off-by: Marton Balint <cus@passwd.hu>
2018-01-12 23:40:41 +01:00
..
2017-05-12 10:48:13 +02:00
2016-12-01 09:53:38 +01:00
2018-01-06 14:58:00 +01:00
2017-10-31 20:37:22 +01:00
2017-11-26 14:05:25 +01:00
2017-01-12 15:07:18 +01:00
2016-03-13 10:06:21 +01:00
2017-04-23 14:40:30 +07:00
2017-06-26 19:43:41 +02:00
2017-04-23 14:40:30 +07:00
2017-01-12 10:22:52 +01:00
2016-01-28 19:49:48 -08:00
2017-07-08 11:49:54 +02:00
2016-01-31 15:44:11 -08:00
2016-01-28 19:49:48 -08:00
2017-04-23 14:40:30 +07:00
2016-01-31 15:44:11 -08:00
2017-12-27 11:54:22 +01:00
2016-02-27 21:35:20 +01:00
2018-01-03 19:45:01 +01:00
2017-08-05 21:05:22 +02:00
2018-01-05 03:35:48 +01:00
2017-04-24 20:37:30 +02:00
2017-11-24 16:51:33 +01:00
2017-11-25 09:51:33 +01:00
2017-12-06 15:42:23 +01:00
2017-08-15 15:27:42 +02:00
2017-12-23 10:48:14 +01:00