Message ID | CALZjo7tK2cAZ+Wn_Tm=jBL3AAGBUUaJd2K6ns1JM6=a5wJaeAA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/opencl: Fix program_opencl for source code larger than 64kB | expand |
Context | Check | Description |
---|---|---|
andriy/configure | warning | Failed to apply patch |
diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 9c46cfdc09..8f05696e62 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/opencl.c @@ -257,7 +257,7 @@ int ff_opencl_filter_load_program_from_file(AVFilterContext *avctx, goto fail; } pos += rb; - if (pos < len) + if (pos + 1 < len) break; len <<= 1;