From: Good Guy Date: Mon, 30 Jan 2017 21:51:55 +0000 (-0700) Subject: add frame skew to ydiff X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=b9c7bc3ce26b8e6df4b6ad64d7b2d328525f7198;p=goodguy%2Fhistory.git add frame skew to ydiff --- diff --git a/cinelerra-5.1/cinelerra/ydiff.C b/cinelerra-5.1/cinelerra/ydiff.C index bb8dda2d..c0322c39 100644 --- a/cinelerra-5.1/cinelerra/ydiff.C +++ b/cinelerra-5.1/cinelerra/ydiff.C @@ -367,6 +367,11 @@ int main(int ac, char **av) int64_t err = 0; int frm_no = 0; + if( ac>3 && (ret=atoi(av[3])) ) { + while( ret > 0 ) { a.read_frame(); --ret; } + while( ret < 0 ) { b.read_frame(); ++ret; } + } + while( !done ) { AVFrame *ap = a.read_frame(); if( !ap ) break;