]> granicus.if.org Git - handbrake/commit
sync: fix small video dejitter error
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 3 Mar 2017 21:19:36 +0000 (14:19 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 3 Mar 2017 21:29:19 +0000 (14:29 -0700)
commit31d0389758bd506a6c349d85c0d3191880d0dea4
treeabe8a04b4d7422b300cf99b3c7aabc32f7b9b60a
parentc33ca187ddec9cf42378a289d7b4ff90996b948a
sync: fix small video dejitter error

This very small error snowballs into a crash in x264 :-p

If the amount of jitter on the first frame in the queue was small
(about 1 tick) then jitter would not be removed from that frame.
This extra tick of jitter can appear on different frames depending
on when frame arrives and how much has been queued.  This very small
amount of randomness lead to problems in the VFR filter.  A frame
duration difference as small as 1 tick can lead to an extra frame
getting duplicated when doing CFR.  When doing 2 pass encoding, this
extra frame causes x264 to crash at the end of the 2nd pass.
libhb/sync.c