summaryrefslogtreecommitdiff
path: root/libavfilter/opencl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/opencl.c')
-rw-r--r--libavfilter/opencl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c
index 8174537c2b..70d5edb78c 100644
--- a/libavfilter/opencl.c
+++ b/libavfilter/opencl.c
@@ -242,7 +242,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;
err = av_reallocp(&src, len);