OSDN Git Service

lavfi: tweak display aspect ratio variables in pad and scale filters
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 27 Jul 2011 08:58:24 +0000 (10:58 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 30 Jul 2011 16:27:24 +0000 (18:27 +0200)
commit61d55fda2b513caf18e37b27aba680a87840904a
tree4055c0c0c71dc4b12058e5af9b3d2ae71a6606af
parent0e29c4f761575d60c764e56ed1d07b432eaf0262
lavfi: tweak display aspect ratio variables in pad and scale filters

Previously, "dar" and "a" were documented like "input display aspect
ratio", but their actual value was "in_w/in_h".

In order to avoid to break scripts which rely on the "a" variable, the
patch keeps the same semantics but fixes the corresponding docs, and
fixes the semantics of the recently added "dar" variable, which
now correctly expresses the input Display Aspect Ratio value as
"(inw_w/in_h)*sar".
doc/filters.texi
libavfilter/avfilter.h
libavfilter/vf_pad.c
libavfilter/vf_scale.c