OSDN Git Service

vf_drawtext: fix background box coloring with RGB formats != RGBA
authorStefano Sabatini <stefasab@gmail.com>
Wed, 21 Sep 2011 09:02:36 +0000 (11:02 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 21 Sep 2011 22:45:59 +0000 (00:45 +0200)
commit500b3210da0c157602266d61e6634932b8f4418e
tree6d468513709bd4594ed2fdbafb3d651004949184
parentdb56a7507ee7c1e095d2eef451d5a487f614edff
vf_drawtext: fix background box coloring with RGB formats != RGBA

drawbox() expects a color specified in RGBA format, while the code was
providing a color with the components specified in the same order of
the input pixel format.

In particular, fix box coloring with AXXX RGB formats.
libavfilter/vf_drawtext.c