splitter: wall: fix incorrect sizes
commitdcc1b6e26eed4716271d62139fdd7389b58d21d3
authorVictorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com>
Fri, 4 Aug 2017 17:40:58 +0000 (4 19:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Aug 2017 20:05:38 +0000 (6 22:05 +0200)
tree60ca3fce2d59449a90dba21f2b85cffb65223433
parentbc80566d95b213498978b92a1fd377ae4817c933
splitter: wall: fix incorrect sizes

The computations must not be done on the buffer size but on the video one.
Otherwise, we might end up with the sum of all output sizes bigger than the
video itself, which results in a green strip at the bottom of the lowest
outputs, and potentially incorrect display for all of them (with bad width).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_splitter/wall.c