avfilter/opencl: Fix program_opencl for source code larger than 64kB
The condition (pos < len) is always true and the rest of the OpenCL program code would not be read, while the maximum number of "rb" is "len - pos - 1", and then, the maximum number of the "pos" is "len - 1". Fixes: trac.ffmpeg.org/ticket/9217
Showing
Please register or sign in to comment