libavfilter/vf_dnn_detect: Fix an incorrect expression
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
parent
081d69b78d
commit
e01afa1c6d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user