ffmpeg | branch: master | Wenbin Chen <wenbin.c...@intel.com> | Thu Dec 14 
10:49:25 2023 +0800| [e01afa1c6d53eeae93210830968c1f0c111c1b36] | committer: 
Guo Yejun

libavfilter/vf_dnn_detect: Fix an incorrect expression

Signed-off-by: Wenbin Chen <wenbin.c...@intel.com>

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

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

diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c
index 7ac3bb0b58..b82916ce6d 100644
--- a/libavfilter/vf_dnn_detect.c
+++ b/libavfilter/vf_dnn_detect.c
@@ -106,7 +106,7 @@ static int dnn_detect_parse_anchors(char *anchors_str, 
float **anchors)
         i++;
     }
     nb_anchor++;
-    anchors_buf = av_mallocz(nb_anchor * sizeof(*anchors));
+    anchors_buf = av_mallocz(nb_anchor * sizeof(**anchors));
     if (!anchors_buf) {
         return 0;
     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to