[FFmpeg-devel] [PATCH] lavfi: tweak aspect-ratio computation in pad and scale filters

Stefano Sabatini stefano.sabatini-lala at poste.it
Thu Jul 28 10:39:28 CEST 2011


On date Wednesday 2011-07-27 11:12:23 +0200, Stefano Sabatini encoded:
> Previously, "dar" and "a" were documented like "input sample aspect
> ratio", but their actual value was "in_w/in_h", which is not the very
> same thing.
> 
> In order to avoid to break scripts which rely on the "a" variable, the
> patch keeps the same semantics but fixes the corresponding docs, while
> fixes the semantics of the recently added "dar" variable, which
> correctly express the Display Aspect Ratio value as (inw_w/in_h)*sar.
> ---
>  doc/filters.texi       |   14 ++++++++++----
>  libavfilter/vf_pad.c   |    9 ++++++---
>  libavfilter/vf_scale.c |    9 ++++++---
>  3 files changed, 22 insertions(+), 10 deletions(-)
> 

I'll apply this soon if I see no comments.
-- 
FFmpeg = Frenzy & Funny Meaningful Purposeless Ephemeral Genius


More information about the ffmpeg-devel mailing list