vf_scale: conditionally override chroma position
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Wed, 23 Sep 2015 13:06:01 +0000 (15:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Sep 2015 21:30:53 +0000 (23:30 +0200)
commit552faecf4b1c60ac7fe805653fa3189a15bc21f0
tree16ef6d8292845e1d22dcd7130cb2e6b378c4ce64
parent3441fef0f8bfcdfbad69b49b7fc526fcdb2185cd
vf_scale: conditionally override chroma position

For yuv420p, the chroma position is unilaterally overriden, even
if ffmpeg's command-line explicitly set it. To fix this, override
only if the value is the default one.

Regression since 1515bfb3.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_scale.c