vf_avgblur_opencl: Don't run kernel on pixels outside the image
authorMark Thompson <sw@jkqxz.net>
Sat, 24 Mar 2018 13:56:16 +0000 (13:56 +0000)
committerMark Thompson <sw@jkqxz.net>
Mon, 26 Mar 2018 21:28:24 +0000 (22:28 +0100)
commit213839edffbf3982570e4e06ca713f8547dd336a
tree8345d7073a509f4c2889434d3f7c115457de63d8
parent9f17875134754eef899aefd30500904635edec9e
vf_avgblur_opencl: Don't run kernel on pixels outside the image

The output frame size is larger than the image containing a subsampled
plane - use the actual size of the image being written rather than the
dimensions of the intended output frame.

Reviewed-by: Dylan Fernando <dylanf123@gmail.com>
libavfilter/vf_avgblur_opencl.c