Commit 82b280ca2a for ffmpeg
commit 82b280ca2ab440efcc932052edb53dbcc2822e4f
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Mon Sep 21 06:14:25 2026 +0200
avfilter/vf_libopencv: return the error from read_shape_from_file()
Found during triage/review of the security reports 4MBWdnTTajBU and
ZbzgLVrnEIkH.
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index c125d294d1..5985262966 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -180,6 +180,8 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
end:
av_file_unmap(buf, size);
+ if (ret < 0)
+ return ret;
#ifdef DEBUG
{