mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
wmavoice: Use proper size in memeset().
sizeof(array_functrion_argument) gives the size of the pointer type not the size of the array to which it points.
This commit is contained in:
parent
762f95e4cb
commit
869303bebd
@ -315,7 +315,7 @@ static av_cold int decode_vbmtree(GetBitContext *gb, int8_t vbm_tree[25])
|
|||||||
};
|
};
|
||||||
int cntr[8], n, res;
|
int cntr[8], n, res;
|
||||||
|
|
||||||
memset(vbm_tree, 0xff, sizeof(vbm_tree));
|
memset(vbm_tree, 0xff, sizeof(vbm_tree[0]) * 25);
|
||||||
memset(cntr, 0, sizeof(cntr));
|
memset(cntr, 0, sizeof(cntr));
|
||||||
for (n = 0; n < 17; n++) {
|
for (n = 0; n < 17; n++) {
|
||||||
res = get_bits(gb, 3);
|
res = get_bits(gb, 3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user