mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
Replace memset(0) by zero initializations.
Also remove one pointless zero initialization in rangecoder.c.
This commit is contained in:
@@ -233,7 +233,7 @@ static void merge(GetBitContext *gb, uint8_t *dst, uint8_t *src, int size)
|
||||
*/
|
||||
static void read_tree(GetBitContext *gb, Tree *tree)
|
||||
{
|
||||
uint8_t tmp1[16], tmp2[16], *in = tmp1, *out = tmp2;
|
||||
uint8_t tmp1[16] = { 0 }, tmp2[16], *in = tmp1, *out = tmp2;
|
||||
int i, t, len;
|
||||
|
||||
tree->vlc_num = get_bits(gb, 4);
|
||||
@@ -244,7 +244,6 @@ static void read_tree(GetBitContext *gb, Tree *tree)
|
||||
}
|
||||
if (get_bits1(gb)) {
|
||||
len = get_bits(gb, 3);
|
||||
memset(tmp1, 0, sizeof(tmp1));
|
||||
for (i = 0; i <= len; i++) {
|
||||
tree->syms[i] = get_bits(gb, 4);
|
||||
tmp1[tree->syms[i]] = 1;
|
||||
|
||||
Reference in New Issue
Block a user