]> git.sesse.net Git - ffmpeg/commit
ffmpeg: fix -aspect cli option
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 16 Apr 2011 23:47:24 +0000 (16:47 -0700)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 16 Apr 2011 23:47:26 +0000 (16:47 -0700)
commitabf8342aa94bdf06bb324f6723a6743dd628d5c6
treebc2e89f47642c0eaaa2436fbd08d084a0a09168c
parent0ba8485666f532f2dbab716f74e1be1189102c89
ffmpeg: fix -aspect cli option

Redesign the way -aspect option is handled. This is done by making
ffmpeg read the sample aspect ratio set in the corresponding input
stream by default, and overriding it using the value specified by
-aspect.

If the output display aspect ratio is specified with -aspect, it is
set at the end of the filterchain, thus overriding the value set by
filters in the filterchain.

This implementation is more robust, since does not modify the
filterchain description (which was creating potential syntax errors).
ffmpeg.c