]> git.sesse.net Git - ffmpeg/commit
ffplay: fix greenish line on the right edge with some xv sizes
authorMarton Balint <cus@passwd.hu>
Thu, 6 Dec 2012 23:44:17 +0000 (00:44 +0100)
committerMarton Balint <cus@passwd.hu>
Tue, 25 Dec 2012 12:54:07 +0000 (13:54 +0100)
commitcf0c63d99ae47b838b439f365994e599d056b351
tree2810e13000504bbaef11b5f0e42579dda59ecc11
parent1be8d0fbda0a0c2a8cdfcf117cd7670488c868bb
ffplay: fix greenish line on the right edge with some xv sizes

If the XV image linesize was different from the width, SDL would create an
overlay wider than the actually requested one. This causes a greenish line on
the right, because the rightmost texel is blended with unset data.  This patch
introduces a function which duplicates the rightmost texel to the unset space,
that way the blending will be done with duplicated border texels.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c