mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +00:00
g722enc: fix size argument in memset
Fixes CID700725. (cherry picked from commit f1de23faaa61ecf3706055f2da97f5b92aa07d9c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
988910a277
commit
cc88dacc1a
@ -174,7 +174,7 @@ static void g722_encode_trellis(G722Context *c, int trellis,
|
||||
for (i = 0; i < 2; i++) {
|
||||
nodes[i] = c->nodep_buf[i];
|
||||
nodes_next[i] = c->nodep_buf[i] + frontier;
|
||||
memset(c->nodep_buf[i], 0, 2 * frontier * sizeof(*c->nodep_buf));
|
||||
memset(c->nodep_buf[i], 0, 2 * frontier * sizeof(*c->nodep_buf[i]));
|
||||
nodes[i][0] = c->node_buf[i] + frontier;
|
||||
nodes[i][0]->ssd = 0;
|
||||
nodes[i][0]->path = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user