[FFmpeg-devel] [PATCH] Add a time_base field to AVFilterPad.

Michael Niedermayer michaelni
Wed Oct 6 18:19:35 CEST 2010


On Wed, Oct 06, 2010 at 06:12:17PM +0200, Stefano Sabatini wrote:
> On date Wednesday 2010-10-06 12:13:42 +0200, Michael Niedermayer encoded:
> > On Wed, Oct 06, 2010 at 10:57:47AM +0200, Stefano Sabatini wrote:
> > > > > > > > your code makes no sense
> > > > > > > > with a/b and c/d
> > > > > > > > 
> > > > > > > > you need something like:
> > 
> > > > > > > > reduce(gcd(ad,cb)/bd)
> > [...]
> > > Reducing tb1 and tb2 should solve the issue in this case.
> > 
> > why dont you use what i suggest?
> 
> (because I was trying to understand the math behind)

gcd(a/b, c/d)
gcd(a/b, c/d)*bd / bd
gcd(abd/b, cbd/d) / bd
gcd(ad, cb) / bd


> 
> So the code is:

should be ok, a test cant hurt of course

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101006/e2238579/attachment.pgp>



More information about the ffmpeg-devel mailing list