OSDN Git Service

vf_scale: ensure the palette is set for output.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 8 Apr 2012 13:11:13 +0000 (15:11 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 9 Apr 2012 15:21:35 +0000 (17:21 +0200)
commit6458a08700a2d6df2e1930dc59c0ace5e5a67164
treee20b1ea3e89fec58c28d7c42e75483265da1b920
parent24eac3cff54a5828ba76bc1ad93b99724cde45c1
vf_scale: ensure the palette is set for output.

Since those are pseudo-palette formats, swscale does not write
into data[1], swscale must initialize the palette properly itself.
This lead to frames that actually decoded as all-gray before.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavfilter/vf_scale.c
tests/ref/lavfi/pixfmts_crop
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip
tests/ref/vsynth1/zmbv
tests/ref/vsynth2/zmbv