Change #263546
| Category | ffmpeg |
| Changed by | Dana Feng <danaf@twosigma.com> |
| Changed at | Sun 05 Apr 2026 02:26:55 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 63822ae21fd15477539f23ab8ea246bee59189d3 |
Comments
vf_mpdecimate: Fix keep option logic for keep > 0 Fix the following issues with the keep option: - Add similarity check during keep period. Previously, the code returned early during the keep period without checking if the frame is actually similar to the reference. - Reset keep_count on different frames. Previously, the counter could accumulate across non-consecutive similar frames, causing frames to be dropped earlier than expected. - Keep the same frame reference if appropriate. Previously, the code made similar frames the new reference, causing reference drift and gradual scene changes. Signed-off-by: Dana Feng <danaf@twosigma.com>
Changed files
- libavfilter/vf_mpdecimate.c