OSDN Git Service

ffmpeg: fix -aspect cli option
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 1 Apr 2011 15:30:45 +0000 (17:30 +0200)
committerAlex Converse <alex.converse@gmail.com>
Mon, 16 May 2011 21:13:03 +0000 (14:13 -0700)
commit901ff51116f831c9082e14c80c7481dd3999aa30
tree4cc095090c03682cd006b522a4ff653577cc20f9
parent9d5fa6182dd2e41d5c174b29ef2a1a2f83a02d23
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).

(Cherry-pick abf8342aa94bdf06bb324f6723a6743dd628d5c6)

Another aspect ratio fix try. This leaves the setdar addition at the end
(preferred by people).

(Cherry-pick e7c7b0d000e81d24327602e04d8fed400dbb7193)
ffmpeg.c