]> git.sesse.net Git - ffmpeg/commit
ffplay: fix sws_scale possible out of bounds array access
authorMarton Balint <cus@passwd.hu>
Sat, 10 Dec 2016 11:46:54 +0000 (12:46 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 10 Dec 2016 22:22:11 +0000 (23:22 +0100)
commit1f3910262e1b9091f597ebbb710b478d40319986
tree8bcd397d8e1e10a9949b524b3d3365db7dbb567a
parent3703f13333e24540a5ef132e7b2a9c0ded7e4531
ffplay: fix sws_scale possible out of bounds array access

As I used simple RGBA formats for subtitles and for the video texture if
avfilter is disabled I kind of assumed that sws_scale won't access data
pointers and strides above index 0, but apparently that is not the case.

Fixes Coverity CID 1396737139673813967391396740.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c