[FFmpeg-devel] [PATCH] lavu/parseutils: reduce fraction in av_parse_ratio()

Stefano Sabatini stefasab at gmail.com
Sat Oct 20 12:23:09 CEST 2012


On date Wednesday 2012-10-17 17:05:11 +0200, Michael Niedermayer encoded:
> On Wed, Oct 17, 2012 at 11:33:35AM +0200, Stefano Sabatini wrote:
[...]
> > From 30b6737361719a2d88c0105cbc403ed84eaab56b Mon Sep 17 00:00:00 2001
> > From: Stefano Sabatini <stefasab at gmail.com>
> > Date: Tue, 16 Oct 2012 18:15:58 +0200
> > Subject: [PATCH] lavu/parseutils: rework rational reduction logic in
> >  av_parse_ratio()
> > 
> > Avoid to divide num and den by gcd in case of a parsed expression, since
> > that is already done in av_d2q(), and force reduction in case of "a:b"
> > form, allowing to honour the max parameter.
> > 
> > The latter change is consistent with the a/b case, and with the
> > documentation.
> 
> should be ok

Applied.
-- 
FFmpeg = Friendly and Fast Multimedia Political Enhanced Geisha


More information about the ffmpeg-devel mailing list