Skip to content

Commit

Permalink
Initialize padding pointers to zero
Browse files Browse the repository at this point in the history
Avoids valgrind complaining about use of uninitialized memory
  • Loading branch information
jmvalin committed Dec 17, 2023
1 parent 12fbd81 commit 591c8ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/repacketizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ static int opus_repacketizer_cat_impl(OpusRepacketizer *rp, const unsigned char
{
rp->nb_frames++;
rp->padding_len[rp->nb_frames] = 0;
rp->paddings[rp->nb_frames] = NULL;
curr_nb_frames--;
}
rp->nb_frames++;
Expand Down

0 comments on commit 591c8ba

Please sign in to comment.