diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 20:56:58 +0200 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 21:05:15 +0200 |
commit | f1de23faaa61ecf3706055f2da97f5b92aa07d9c (patch) | |
tree | 87f6149694d221fa314e1606e8c2495e6db5dc92 | |
parent | 4a7c0c4555477c9367fb45ee0cc10e4351e53930 (diff) | |
download | ffmpeg-f1de23faaa61ecf3706055f2da97f5b92aa07d9c.tar.gz |
g722enc: fix size argument in memset
Fixes CID700725.
-rw-r--r-- | libavcodec/g722enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c index cc879367fd..11d3f20933 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -196,7 +196,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; |