[FFmpeg-devel] [PATCH]lavf/decimate: Fix total difference for the first frame

Derek Buitenhuis derek.buitenhuis at gmail.com
Sun Jan 3 19:41:39 CET 2016


On 1/3/2016 3:11 PM, Carl Eugen Hoyos wrote:
> With the patch, the frame with the lowest diff is actually dropped 
> instead of the first frame that indicates a scene change without 
> the patch (iiuc).

Is this for all scene changes or just frame 0? If for all scene changes, ignore
the lower comment.

> -            dm->queue[dm->fid].totdiff  = INT64_MAX;
> +            dm->queue[dm->fid].totdiff  = dm->scthresh;


Upstream uses +1 here, but I'm not sure why:

https://github.com/vapoursynth/vapoursynth/blob/master/src/filters/vivtc/vivtc.c#L1294

Any insights?

- Derek


More information about the ffmpeg-devel mailing list