[FFmpeg-devel] [PATCH] lavu: introduce av_parse_ratio() and use it in ffmpeg and lavfi/aspect

Stefano Sabatini stefasab at gmail.com
Tue Jan 31 15:29:32 CET 2012


On date Saturday 2012-01-28 12:19:06 +0100, Stefano Sabatini encoded:
> On date Friday 2012-01-27 22:47:42 +0100, Alexander Strasser encoded:
> > Hi,
> > 
> > Stefano Sabatini wrote:
> > [...]
> > > +#define av_parse_ratio_quite(rate, str, max) \
> > > +    av_parse_ratio(rate, str, max, AV_LOG_MAX_OFFSET, NULL)
> > 
> >   Should read "av_parse_ratio_quiet" because "quite" is quite a different thing ;)
> 
> Ouch, thanks for noticing :).
> -- 
> FFmpeg = Fancy and Faithless Merciless Political Elastic Gargoyle

> From 17b4e7604bb65d7f15b89dabdd0fddbc64d8fa38 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Tue, 17 Jan 2012 15:25:14 +0100
> Subject: [PATCH] lavu: introduce av_parse_ratio() and use it in ffmpeg and
>  lavfi/aspect
> 
> Factorize code and provide ratio parsing consistency.
> ---
>  ffmpeg.c                |   35 +++++++++--------------------------
>  libavfilter/vf_aspect.c |   25 ++++++-------------------
>  libavutil/log.h         |    1 +
>  libavutil/parseutils.c  |   31 +++++++++++++++++++++++++++----
>  libavutil/parseutils.h  |   24 ++++++++++++++++++++++++
>  5 files changed, 67 insertions(+), 49 deletions(-)

I'll push it tomorrow if I read no objections.
-- 
FFmpeg = Frenzy and Friendly Martial Portentous Enlightening Gymnast


More information about the ffmpeg-devel mailing list