[FFmpeg-cvslog] avfilter/vf_signature: Initialize all houghspace elements

Jai Luthra git at videolan.org
Tue Jul 20 17:17:12 EEST 2021


ffmpeg | branch: master | Jai Luthra <me at jailuthra.in> | Tue Jul 13 13:43:25 2021 +0530| [012804d2e9087a65f557e18ef8171a5c6b779f6a] | committer: Jai Luthra

avfilter/vf_signature: Initialize all houghspace elements

Co-authored-by: Oscar <oscar_davids at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=012804d2e9087a65f557e18ef8171a5c6b779f6a
---

 libavfilter/signature_lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c
index 272c717c77..f1d378237a 100644
--- a/libavfilter/signature_lookup.c
+++ b/libavfilter/signature_lookup.c
@@ -200,7 +200,7 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont
     /* initialize houghspace */
     for (i = 0; i < MAX_FRAMERATE; i++) {
         hspace[i] = av_malloc_array(2 * HOUGH_MAX_OFFSET + 1, sizeof(hspace_elem));
-        for (j = 0; j < HOUGH_MAX_OFFSET; j++) {
+        for (j = 0; j < 2 * HOUGH_MAX_OFFSET + 1; j++) {
             hspace[i][j].score = 0;
             hspace[i][j].dist = 99999;
         }



More information about the ffmpeg-cvslog mailing list